1 scons does not use os environment by default:
2 https://scons.org/doc/2.1.0/HTML/scons-user/x1750.html
4 nixpkgs' cc-wrapper on the other hand relies on various NIX_* variables
5 to be passed through like NIX_CFLAGS_COMPILE_BEFORE.
8 @@ -559,10 +559,7 @@ options = dict(
9 SHLINKCOMSTR=link_shared_library_message,
10 LINKCOMSTR=link_program_message,
11 PREFIX=GetOption('prefix'),
12 - ENV = dict([ (key, os.environ[key])
13 - for key in os.environ
14 - if key in ['PATH', 'TERM', 'HOME', 'PKG_CONFIG_PATH']
19 if ARGUMENTS.get('VERBOSE') == "1":