3 # Carlos Rafael Giani, 2007 (dv)
7 from Configure
import conftest
11 conf
.find_program('gdc', var
='D_COMPILER', mandatory
=True)
14 def common_flags_gdc(conf
):
17 # _DFLAGS _DIMPORTFLAGS
19 # for mory info about the meaning of this dict see dmd.py
23 v
['D_TGT_F'] = ['-c', '-o', '']
24 v
['DPATH_ST'] = '-I%s' # template for adding import paths
27 v
['D_LINKER'] = v
['D_COMPILER']
29 v
['DLNK_TGT_F'] = ['-o', '']
31 v
['DLIB_ST'] = '-l%s' # template for adding libs
32 v
['DLIBPATH_ST'] = '-L%s' # template for adding libpaths
36 v
['DFLAGS_OPTIMIZED'] = ['-O3']
37 v
['DFLAGS_DEBUG'] = ['-O0']
38 v
['DFLAGS_ULTRADEBUG'] = ['-O0']
40 v
['D_shlib_DFLAGS'] = []
41 v
['D_shlib_LINKFLAGS'] = ['-shared']
43 v
['DHEADER_ext'] = '.di'
44 v
['D_HDR_F'] = '-fintfc -fintfc-file='
50 conf
.common_flags_gdc()
51 conf
.d_platform_flags()