-
-
Save indutny/706d42a19841c22a4f99 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
diff --git a/tools/wafadmin/Scripting.py b/tools/wafadmin/Scripting.py | |
index d975bd9..790ad91 100644 | |
--- a/tools/wafadmin/Scripting.py | |
+++ b/tools/wafadmin/Scripting.py | |
@@ -256,7 +256,14 @@ def configure(conf): | |
# (used only by Configure.autoconfig) | |
env['hash'] = conf.hash | |
env['files'] = conf.files | |
- env['environ'] = dict(conf.environ) | |
+ allowed = [ | |
+ 'PATH', 'NODE_PATH', 'HOME', 'PREFIX_NODE', | |
+ 'MACOSX_DEPLOYMENT_TARGET', 'PYTHONDIR', | |
+ 'CC', 'CXX', 'CPP', 'LD', | |
+ 'TERM', 'COMSPEC', 'DESTDIR', | |
+ 'NUMBER_OF_PROCESSORS', 'JOBS', 'PREFIX', | |
+ 'WAFCACHE', 'WAFLOCK' ] | |
+ env['environ'] = dict((k, v) for k, v in conf.environ.iteritems() if k in allowed) | |
env['cwd'] = os.path.split(Utils.g_module.root_path)[0] | |
if Utils.g_module.root_path != src: |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment