I might be too tired.

This commit is contained in:
Patrick 2024-02-02 02:09:25 +01:00
parent d03604c061
commit a096458bdb

View File

@ -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')