From a096458bdb81bcc0915815687e9efa7c7769e659 Mon Sep 17 00:00:00 2001 From: Patrick Wuttke Date: Fri, 2 Feb 2024 02:09:25 +0100 Subject: [PATCH] I might be too tired. --- SConstruct | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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')