Inherit environment variables so it finds the compilers in PATH.

This commit is contained in:
Patrick 2024-02-02 02:06:57 +01:00
parent 3d284a0bde
commit d03604c061

View File

@ -1,4 +1,5 @@
import os
import subprocess
AddOption(
@ -25,7 +26,7 @@ env.Append(CPPDEFINES = ['BASTL_EXTENSIONS=1'])
# env.Append(CCFLAGS = ['-O2'])
env['ISO_FILES'] = []
env = SConscript('targets/_any/SConscript', exports = 'env')
env = SConscript('targets/_any/SConscript', exports = 'env', ENV = os.environ) # TODO inheriting the environment is not a best practice
if not stdlib:
env = SConscript(f'targets/{target}/SConscript', exports = 'env')