From 0afdb86910fff99e520c3b70ed879a38ca44667e Mon Sep 17 00:00:00 2001 From: Kp Date: Sat, 20 Apr 2013 23:52:17 +0000 Subject: [PATCH] Construct self.sources sooner so that code can always append to it --- SConstruct | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/SConstruct b/SConstruct index 5dfb0117e..d17398406 100644 --- a/SConstruct +++ b/SConstruct @@ -145,6 +145,7 @@ class DXXCommon: def __init__(self): self.__lazy_object_cache = {} + self.sources = [] def prepare_environment(self): # Acquire environment object... @@ -179,7 +180,7 @@ class DXXCommon: for flags in ['CFLAGS', 'CXXFLAGS']: if os.environ.has_key(flags): self.env[flags] += SCons.Util.CLVar(os.environ[flags]) - self.sources = self.objects_common[:] + self.sources += self.objects_common[:] def check_endian(self): # set endianess