From 912f188eb378d48e88b0bc4373111d72ba9f6fc8 Mon Sep 17 00:00:00 2001 From: Bassem Girgis Date: Wed, 27 Sep 2017 01:10:44 -0500 Subject: [PATCH] Get windows build working --- execEx/02/SConstruct | 4 +++- execEx/03/SConstruct | 3 ++- 2 files changed, 5 insertions(+), 2 deletions(-) diff --git a/execEx/02/SConstruct b/execEx/02/SConstruct index 8178cd4..c48bdf7 100644 --- a/execEx/02/SConstruct +++ b/execEx/02/SConstruct @@ -61,8 +61,10 @@ scons: done building targets. """) +import os + print('------------------>starting') -env = Environment() +env = Environment(ENV=os.environ) open('env.txt', 'w').write(env.Dump()) diff --git a/execEx/03/SConstruct b/execEx/03/SConstruct index 283f310..4694cc5 100644 --- a/execEx/03/SConstruct +++ b/execEx/03/SConstruct @@ -33,7 +33,8 @@ buildName = ARGUMENTS.get('BUILDNAME', 'default') # # Initializing the environment # -env = Environment(CC='clang', +env = Environment(ENV=os.environ, + CC='clang', CXX='clang++') ccFlags = [] linkFlags = []