We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent f179a18 commit 4e19f18Copy full SHA for 4e19f18
1 file changed
SConstruct
@@ -115,7 +115,18 @@ if not os.path.exists( sconsign_dir_path ):
115
# Store all dependencies signature in a database
116
SConsignFile( sconsign_path )
117
118
-env = Environment( ENV = {'PATH' : os.environ['PATH']},
+def make_environ_vars():
119
+ """Returns a dictionnary with environment variable to use when compiling."""
120
+ # PATH is required to find the compiler
121
+ # TEMP is required for at least mingw
122
+ vars = {}
123
+ for name in ('PATH', 'TEMP', 'TMP'):
124
+ if name in os.environ:
125
+ vars[name] = os.environ[name]
126
+ return vars
127
+
128
129
+env = Environment( ENV = make_environ_vars(),
130
toolpath = ['scons-tools'],
131
tools=[] ) #, tools=['default'] )
132
0 commit comments