3 # WARNING! Do not edit! http://waf.googlecode.com/git/docs/wafbook/single.html#_obtaining_the_waf_file
6 from waflib.Tools import ar,d
7 from waflib.Configure import conf
10 conf.find_program('gdc',var='D')
11 out=conf.cmd_and_log(conf.env.D+['--version'])
12 if out.find("gdc")==-1:
13 conf.fatal("detected compiler is not gdc")
15 def common_flags_gdc(conf):
22 v['DLNK_TGT_F']='-o%s'
24 v['DSHLIB_MARKER']=v['DSTLIB_MARKER']=''
25 v['DSTLIB_ST']=v['DSHLIB_ST']='-l%s'
26 v['DSTLIBPATH_ST']=v['DLIBPATH_ST']='-L%s'
27 v['LINKFLAGS_dshlib']=['-shared']
28 v['DHEADER_ext']='.di'
29 v.DFLAGS_d_with_header='-fintfc'
30 v['D_HDR_F']='-fintfc-file=%s'
35 conf.common_flags_gdc()
36 conf.d_platform_flags()