X-Git-Url: http://g0dil.de/git?a=blobdiff_plain;f=senfscons%2FSENFSCons.py;h=aa5efa2e93b36cebf592429b7047e3554db421ca;hb=41fe0d795abca302db24e7a955df6ef15ffed722;hp=917f99763b2c15ce49d312b998e02afebe8e49ce;hpb=b52002fa2001e6472d6aa3dde263b85f654c6e8e;p=senf.git 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(