mirror of
https://github.com/eclipse-cdt/cdt
synced 2025-07-25 01:45:33 +02:00
Fix for [Bug 185104] parallel build option - problem with build command
This commit is contained in:
parent
570ffcfacb
commit
7d445dd496
1 changed files with 2 additions and 1 deletions
|
@ -2246,13 +2246,14 @@ public class Builder extends BuildObject implements IBuilder, IMatchKeyProvider
|
||||||
|
|
||||||
public void setParallelizationNum(int num) throws CoreException {
|
public void setParallelizationNum(int num) throws CoreException {
|
||||||
// if(num == 0 || supportsParallelBuild()){
|
// if(num == 0 || supportsParallelBuild()){
|
||||||
parallelNum = new Integer(num);
|
Integer newParallelNum = new Integer(num);
|
||||||
String curCmd = getParallelizationCmd(getParallelizationNum());
|
String curCmd = getParallelizationCmd(getParallelizationNum());
|
||||||
String args = getArgumentsAttribute();
|
String args = getArgumentsAttribute();
|
||||||
String updatedArgs = removeCmd(args, curCmd);
|
String updatedArgs = removeCmd(args, curCmd);
|
||||||
if(!updatedArgs.equals(args)){
|
if(!updatedArgs.equals(args)){
|
||||||
setArgumentsAttribute(updatedArgs);
|
setArgumentsAttribute(updatedArgs);
|
||||||
}
|
}
|
||||||
|
parallelNum = newParallelNum;
|
||||||
setDirty(true);
|
setDirty(true);
|
||||||
// }
|
// }
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Reference in a new issue