Author: suokko
Date: Mon Jun 23 14:44:24 2008
New Revision: 27431

URL: http://svn.gna.org/viewcvs/wesnoth?rev=27431&view=rev
Log:
Option to set c++ compiler for scons

Modified:
    trunk/SConstruct

Modified: trunk/SConstruct
URL: 
http://svn.gna.org/viewcvs/wesnoth/trunk/SConstruct?rev=27431&r1=27430&r2=27431&view=diff
==============================================================================
--- trunk/SConstruct (original)
+++ trunk/SConstruct Mon Jun 23 14:44:24 2008
@@ -72,6 +72,7 @@
     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,11 +81,15 @@
 #
 
 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)
 


_______________________________________________
Wesnoth-commits mailing list
[email protected]
https://mail.gna.org/listinfo/wesnoth-commits

Reply via email to