3
# Carlos Rafael Giani, 2007 (dv)
5
import os, sys, imp, types
7
import Utils, Action, Params, checks, Configure
13
if Params.g_options.check_dmd_first:
14
test_for_compiler = ['dmd', 'gdc']
16
test_for_compiler = ['gdc', 'dmd']
18
for d_compiler in test_for_compiler:
19
if conf.check_tool(d_compiler):
20
conf.check_message("%s" % d_compiler, '', True)
22
conf.check_message("%s" % d_compiler, '', False)
26
d_compiler_opts = opt.add_option_group("D Compiler Options")
28
d_compiler_opts.add_option('--check-dmd-first', action = "store_true", help = 'checks for the gdc compiler before dmd (default is the other way round)', dest = 'check_dmd_first',default = False)
29
except optparse.OptionConflictError:
30
# the g++ tool might have added that option already
33
for d_compiler in ['gdc', 'dmd']:
34
opt.tool_options('%s' % d_compiler, option_group=d_compiler_opts)