summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSteve Reinhardt <steve.reinhardt@amd.com>2012-05-08 07:49:57 -0700
committerSteve Reinhardt <steve.reinhardt@amd.com>2012-05-08 07:49:57 -0700
commit18e8d7ed2d6d669e9537984837e4ec1fa466e7d1 (patch)
treeff1128008cdce061409546aca829f79537468f94
parent692351ea34f15ba70b23fca68821dc2986de8238 (diff)
downloadgem5-18e8d7ed2d6d669e9537984837e4ec1fa466e7d1.tar.xz
scons: allow override of SWIG binary on command line
-rwxr-xr-xSConstruct3
1 files changed, 2 insertions, 1 deletions
diff --git a/SConstruct b/SConstruct
index 8bfc41951..415af6ca7 100755
--- a/SConstruct
+++ b/SConstruct
@@ -178,7 +178,7 @@ termcap = get_termcap(GetOption('use_colors'))
#
########################################################################
use_vars = set([ 'AS', 'AR', 'CC', 'CXX', 'HOME', 'LD_LIBRARY_PATH', 'PATH',
- 'PYTHONPATH', 'RANLIB' ])
+ 'PYTHONPATH', 'RANLIB', 'SWIG' ])
use_env = {}
for key,val in os.environ.iteritems():
@@ -348,6 +348,7 @@ global_vars = Variables(global_vars_file, args=ARGUMENTS)
global_vars.AddVariables(
('CC', 'C compiler', environ.get('CC', main['CC'])),
('CXX', 'C++ compiler', environ.get('CXX', main['CXX'])),
+ ('SWIG', 'SWIG tool', environ.get('SWIG', main['SWIG'])),
('BATCH', 'Use batch pool for build and tests', False),
('BATCH_CMD', 'Batch pool submission command name', 'qdo'),
('M5_BUILD_CACHE', 'Cache built objects in this directory', False),