mirror of
https://github.com/eclipse-cdt/cdt
synced 2025-04-22 06:02:11 +02:00
Bug 578187: Don't discard make arguments
If a user set the make arguments manually to what the automatic arguments would have been if enabled, they would be discarded. This change does not do that bit of magic anymore because the user now (since Bug 568397) edits the build command and arguments separately so less magic needs to happen in the code. This is a follow-up to Bug 568397. Change-Id: Ie8f51cbb86133fc4a9506913743613712e93d881
This commit is contained in:
parent
640dc53892
commit
cf00e4b27e
2 changed files with 1 additions and 11 deletions
|
@ -2,7 +2,7 @@ Manifest-Version: 1.0
|
||||||
Bundle-ManifestVersion: 2
|
Bundle-ManifestVersion: 2
|
||||||
Bundle-Name: %pluginName
|
Bundle-Name: %pluginName
|
||||||
Bundle-SymbolicName: org.eclipse.cdt.managedbuilder.core; singleton:=true
|
Bundle-SymbolicName: org.eclipse.cdt.managedbuilder.core; singleton:=true
|
||||||
Bundle-Version: 9.3.200.qualifier
|
Bundle-Version: 9.3.300.qualifier
|
||||||
Bundle-Activator: org.eclipse.cdt.managedbuilder.core.ManagedBuilderCorePlugin
|
Bundle-Activator: org.eclipse.cdt.managedbuilder.core.ManagedBuilderCorePlugin
|
||||||
Bundle-Vendor: %providerName
|
Bundle-Vendor: %providerName
|
||||||
Bundle-Localization: plugin
|
Bundle-Localization: plugin
|
||||||
|
|
|
@ -1295,16 +1295,6 @@ public class Builder extends HoldsOptions implements IBuilder, IMatchKeyProvider
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public void setArguments(String newArgs) {
|
public void setArguments(String newArgs) {
|
||||||
if (getArguments().equals(newArgs))
|
|
||||||
return;
|
|
||||||
|
|
||||||
if (newArgs != null) {
|
|
||||||
String stopOnErrCmd = getStopOnErrCmd(isStopOnError());
|
|
||||||
String parallelCmd = isParallelBuildOn() ? getParallelizationCmd(getParallelizationNum()) : EMPTY_STRING;
|
|
||||||
|
|
||||||
newArgs = removeCmd(newArgs, stopOnErrCmd);
|
|
||||||
newArgs = removeCmd(newArgs, parallelCmd);
|
|
||||||
}
|
|
||||||
setArgumentsAttribute(newArgs);
|
setArgumentsAttribute(newArgs);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue