From d03604c061a1acce6b3fb51f8ba80909256f687b Mon Sep 17 00:00:00 2001 From: Patrick Wuttke Date: Fri, 2 Feb 2024 02:06:57 +0100 Subject: [PATCH] Inherit environment variables so it finds the compilers in PATH. --- SConstruct | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/SConstruct b/SConstruct index 2a47c03..f8b3440 100644 --- a/SConstruct +++ b/SConstruct @@ -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')