Option to set c++ compiler for scons

This commit is contained in:
Pauli Nieminen 2008-06-23 12:44:24 +00:00
parent 178ec282a7
commit cad1105d5c

View file

@ -72,6 +72,7 @@ opts.AddOptions(
PathOption('boostlibdir', 'Directory where boost libraries are installed.', '/usr/lib'),
('boost_suffix', 'Suffix of boost libraries.'),
PathOption('gettextdir', 'Root directory of Gettext\'s installation.', "", PathOption.PathAccept),
('cxxtool', 'Set c++ compiler command if not using standard compiler.'),
BoolOption("fast", "Make scons faster at cost of less precise dependency tracking.", False)
)
@ -80,12 +81,16 @@ opts.AddOptions(
#
env = Environment(tools=["tar", "gettext", "install"], options = opts, toolpath = ["scons"])
if env["PLATFORM"] == "win32":
env.Tool("mingw")
env['ENV']['PATH'] = os.environ["PATH"]
else:
env.Tool("default")
if env['cxxtool']:
env['CXX'] = env['cxxtool']
opts.Save('.scons-option-cache', env)
Help("""Arguments may be a mixture of switches and targets an any order.