Construct self.sources sooner so that code can always append to it

This commit is contained in:
Kp 2013-04-20 23:52:17 +00:00
parent ff96f3239d
commit 0afdb86910

View file

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