From 4a0d0b38005dff30f0bb9ce345e106e3aaa59498 Mon Sep 17 00:00:00 2001 From: Kp Date: Tue, 2 Sep 2014 22:09:07 +0000 Subject: [PATCH] Move '-o $TARGET' to end of command line --- SConstruct | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/SConstruct b/SConstruct index 9b28438d1..4051b0435 100644 --- a/SConstruct +++ b/SConstruct @@ -1159,6 +1159,10 @@ class DXXCommon(LazyObjectConstructor): def prepare_environment(self): # Prettier build messages...... + target_string = ' -o $TARGET' + cxxcom = self.env['CXXCOM'] + if target_string + ' ' in cxxcom: + self.env['CXXCOM'] = cxxcom.replace(target_string, '') + target_string if (self.user_settings.verbosebuild == 0): builddir = self.user_settings.builddir if self.user_settings.builddir != '' else '.' self.env["CXXCOMSTR"] = "Compiling %s %s $SOURCE" % (self.target, builddir)