changeset 4bf9aa9d40bb in /z/repo/gem5
details: http://repo.gem5.org/gem5?cmd=changeset;node=4bf9aa9d40bb
description:
scons: Whitelist useful environment variables
Scons normally removes all environment variables that aren't
whitelisted from the build environment. This messes up things like
ccache, distcc, and the clang static analyzer. This changeset adds the
DISTCC_, CCACHE_, and CCC_ prefixes to the environment variable
whitelist.
diffstat:
SConstruct | 10 +++++++++-
1 files changed, 9 insertions(+), 1 deletions(-)
diffs (22 lines):
diff -r f5d159450dfb -r 4bf9aa9d40bb SConstruct
--- a/SConstruct Mon Jan 07 13:05:39 2013 -0500
+++ b/SConstruct Mon Jan 07 13:05:39 2013 -0500
@@ -183,9 +183,17 @@
'LIBRARY_PATH', 'PATH', 'PKG_CONFIG_PATH', 'PYTHONPATH',
'RANLIB', 'SWIG' ])
+use_prefixes = [
+ "M5", # M5 configuration (e.g., path to kernels)
+ "DISTCC_", # distcc (distributed compiler wrapper) configuration
+ "CCACHE_", # ccache (caching compiler wrapper) configuration
+ "CCC_", # clang static analyzer configuration
+ ]
+
use_env = {}
for key,val in os.environ.iteritems():
- if key in use_vars or key.startswith("M5"):
+ if key in use_vars or \
+ any([key.startswith(prefix) for prefix in use_prefixes]):
use_env[key] = val
main = Environment(ENV=use_env)
_______________________________________________
gem5-dev mailing list
[email protected]
http://m5sim.org/mailman/listinfo/gem5-dev