From: g0dil Date: Thu, 11 Oct 2007 06:26:38 +0000 (+0000) Subject: senfscons: Fix 'Object' build helper to work with empty source list in SCons 0.96.1 X-Git-Url: http://g0dil.de/git?a=commitdiff_plain;h=41fe0d795abca302db24e7a955df6ef15ffed722;hp=b52002fa2001e6472d6aa3dde263b85f654c6e8e;p=senf.git senfscons: Fix 'Object' build helper to work with empty source list in SCons 0.96.1 git-svn-id: https://svn.berlios.de/svnroot/repos/senf/trunk@459 270642c3-0616-0410-b53a-bc976706d245 --- diff --git a/senfscons/SENFSCons.py b/senfscons/SENFSCons.py index 917f997..aa5efa2 100644 --- a/senfscons/SENFSCons.py +++ b/senfscons/SENFSCons.py @@ -325,14 +325,14 @@ def Objects(env, sources, testSources = None, LIBS = [], OBJECTS = []): objects = None if sources: - objects = env.Object([ - source - for source in sources - if not str(source).endswith('.o') ]) + [ - source - for source in sources - if str(source).endswith('.o') ] - + obsources = [ source + for source in sources + if not str(source).endswith('.o') ] + objects = [ source + for source in sources + if str(source).endswith('.o') ] + if obsources: + objects += env.Object(obsources) if testSources: test = env.BoostUnitTests(