3 # WARNING! Do not edit! http://waf.googlecode.com/git/docs/wafbook/single.html#_obtaining_the_waf_file
5 import os,sys,imp,types
6 from waflib import Utils,Configure,Options,Logs
8 for compiler in conf.options.dcheck.split(','):
10 conf.start_msg('Checking for %r (d compiler)'%compiler)
13 except conf.errors.ConfigurationError ,e:
16 Logs.debug('compiler_d: %r'%e)
19 conf.end_msg(conf.env.get_flat('D'))
20 conf.env['COMPILER_D']=compiler
24 conf.fatal('no suitable d compiler was found')
26 d_compiler_opts=opt.add_option_group('D Compiler Options')
27 d_compiler_opts.add_option('--check-d-compiler',default='gdc,dmd,ldc2',action='store',help='check for the compiler [Default:gdc,dmd,ldc2]',dest='dcheck')
28 for d_compiler in['gdc','dmd','ldc2']:
29 opt.load('%s'%d_compiler)