3
# WARNING! All changes made to this file will be lost!
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_cxx: %r'%e)
20
conf.env['COMPILER_D']=compiler
21
conf.env.D_COMPILER=conf.env.D
25
conf.fatal('no suitable d compiler was found')
27
d_compiler_opts=opt.add_option_group('D Compiler Options')
28
d_compiler_opts.add_option('--check-d-compiler',default='gdc,dmd',action='store',help='check for the compiler [Default:gdc,dmd]',dest='dcheck')
29
for d_compiler in['gdc','dmd']:
30
opt.load('%s'%d_compiler)