[Xorp-cvs] SF.net SVN: xorp:[11545] trunk/xorp/SConstruct
johntconklin at users.sourceforge.net
johntconklin at users.sourceforge.net
Tue Sep 15 11:43:57 PDT 2009
Revision: 11545
http://xorp.svn.sourceforge.net/xorp/?rev=11545&view=rev
Author: johntconklin
Date: 2009-09-15 18:43:57 +0000 (Tue, 15 Sep 2009)
Log Message:
-----------
Mechanism to override CC and CXX on the command line.
I've placed this after the default tools have set the defaults (so
we're careful not to change them if no command line arguments have
been passed), but before the scons configuration feature tests are
run (so the proper tools are used in that context).
Modified Paths:
--------------
trunk/xorp/SConstruct
Modified: trunk/xorp/SConstruct
===================================================================
--- trunk/xorp/SConstruct 2009-09-15 18:09:15 UTC (rev 11544)
+++ trunk/xorp/SConstruct 2009-09-15 18:43:57 UTC (rev 11545)
@@ -105,6 +105,15 @@
env['DESTDIR'] = ARGUMENTS.get('DESTDIR', '')
+# Provide mechanism to override CC, CXX, etc.
+if ARGUMENTS.get('CC', None):
+ env['CC'] = ARGUMENTS.get('CC')
+print 'CC: ', env['CC']
+
+if ARGUMENTS.get('CXX', None):
+ env['CXX'] = ARGUMENTS.get('CXX')
+print 'CXX: ', env['CXX']
+
if env['strip']:
env['strip'] = True
env['STRIP'] = "strip"
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
More information about the Xorp-cvs
mailing list