Skip to main content
summaryrefslogtreecommitdiffstats
path: root/build
diff options
context:
space:
mode:
authorMarc Khouzam2011-10-14 05:48:39 -0400
committerMarc Khouzam2011-10-14 05:48:39 -0400
commit04d4f11b532a5fb10928f106ffad50da7514da15 (patch)
tree1d280f54829a045be5251e1ce802d89576b72abd /build
parent58e5dd61e0f9d87379ae7c71d166feb4af4eb010 (diff)
downloadorg.eclipse.cdt-04d4f11b532a5fb10928f106ffad50da7514da15.tar.gz
org.eclipse.cdt-04d4f11b532a5fb10928f106ffad50da7514da15.tar.xz
org.eclipse.cdt-04d4f11b532a5fb10928f106ffad50da7514da15.zip
Bug 360846: Extra space in build command
Diffstat (limited to 'build')
-rw-r--r--build/org.eclipse.cdt.managedbuilder.core/src/org/eclipse/cdt/managedbuilder/internal/core/Builder.java5
1 files changed, 5 insertions, 0 deletions
diff --git a/build/org.eclipse.cdt.managedbuilder.core/src/org/eclipse/cdt/managedbuilder/internal/core/Builder.java b/build/org.eclipse.cdt.managedbuilder.core/src/org/eclipse/cdt/managedbuilder/internal/core/Builder.java
index d5d2148931..bb9f105b62 100644
--- a/build/org.eclipse.cdt.managedbuilder.core/src/org/eclipse/cdt/managedbuilder/internal/core/Builder.java
+++ b/build/org.eclipse.cdt.managedbuilder.core/src/org/eclipse/cdt/managedbuilder/internal/core/Builder.java
@@ -1057,6 +1057,11 @@ public class Builder extends HoldsOptions implements IBuilder, IMatchKeyProvider
}
private String addCmd(String args, String cmd){
+ // Don't modify the args parameter if the cmd to add is emtpy.
+ // Bug 360846
+ if(cmd.length() == 0)
+ return args;
+
if(getCmdIndex(args, cmd) == -1){
if(args.length() != 0){
args += ' ';

Back to the top