3 # WARNING! Do not edit! https://waf.io/book/index.html#_obtaining_the_waf_file
7 # Carlos Rafael Giani, 2007 (dv)
9 from waflib.Tools import ar, d
10 from waflib.Configure import conf
15 Finds the program gdc and set the variable *D*
17 conf.find_program('gdc', var='D')
19 out = conf.cmd_and_log(conf.env.D + ['--version'])
20 if out.find("gdc") == -1:
21 conf.fatal("detected compiler is not gdc")
24 def common_flags_gdc(conf):
26 Sets the flags required by *gdc*
40 v.DSHLIB_MARKER = v.DSTLIB_MARKER = ''
41 v.DSTLIB_ST = v.DSHLIB_ST = '-l%s'
42 v.DSTLIBPATH_ST = v.DLIBPATH_ST = '-L%s'
44 v.LINKFLAGS_dshlib = ['-shared']
47 v.DFLAGS_d_with_header = '-fintfc'
48 v.D_HDR_F = '-fintfc-file=%s'
57 conf.common_flags_gdc()
58 conf.d_platform_flags()