diff --git a/SConstruct b/SConstruct index f8b3440..50ffa68 100644 --- a/SConstruct +++ b/SConstruct @@ -20,13 +20,13 @@ AddOption( target = GetOption('target') stdlib = GetOption('stdlib') -env = Environment(tools = ['default', 'compilation_db']) +env = Environment(tools = ['default', 'compilation_db'], ENV = os.environ) # TODO inheriting the environment is not a best practice env.Append(CCFLAGS = ['-g', '-O0', '-fno-stack-protector']) env.Append(CPPDEFINES = ['BASTL_EXTENSIONS=1']) # env.Append(CCFLAGS = ['-O2']) env['ISO_FILES'] = [] -env = SConscript('targets/_any/SConscript', exports = 'env', ENV = os.environ) # TODO inheriting the environment is not a best practice +env = SConscript('targets/_any/SConscript', exports = 'env') if not stdlib: env = SConscript(f'targets/{target}/SConscript', exports = 'env')