1
0
Fork 0
mirror of https://github.com/eclipse-cdt/cdt synced 2025-07-10 18:45:26 +02:00

Bug 360846: Extra space in build command

This commit is contained in:
Marc Khouzam 2011-10-14 05:58:55 -04:00
parent d698aff2a1
commit 2f29555955

View file

@ -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 += ' ';