obey inheritenv variable on scons command-line (patch from Gustavo Carneiro)
This commit is contained in:
6
build.py
6
build.py
@@ -299,7 +299,11 @@ class Ns3:
|
||||
outfile.write('#endif /*' + config_file_guard + '*/\n')
|
||||
config.Finish()
|
||||
def generate_dependencies(self):
|
||||
env = Environment()
|
||||
inheritenv = (ARGUMENTS.get('inheritenv', 'n') in 'yY1')
|
||||
if inheritenv:
|
||||
env = Environment(ENV=os.environ)
|
||||
else:
|
||||
env = Environment()
|
||||
self.gen_mod_config(env)
|
||||
cc = env['CC']
|
||||
cxx = env.subst(env['CXX'])
|
||||
|
||||
Reference in New Issue
Block a user