mirror of
https://github.com/eclipse-cdt/cdt
synced 2025-08-29 03:03:10 +02:00
Bug 315187 Unknown tool option silently breaks ManagedBuild tool command line generation
This commit is contained in:
parent
e09733c754
commit
12978a0406
1 changed files with 12 additions and 14 deletions
|
@ -151,7 +151,6 @@ public class ToolSettingsPrefStore implements IPreferenceStore {
|
||||||
else if((optCategory.getId() + COMMAND_LINE_SUFFIX).equals(name))
|
else if((optCategory.getId() + COMMAND_LINE_SUFFIX).equals(name))
|
||||||
return ((Tool)optCategory).getCommandLinePattern();
|
return ((Tool)optCategory).getCommandLinePattern();
|
||||||
else if(ALL_OPTIONS_ID.equals(name)){
|
else if(ALL_OPTIONS_ID.equals(name)){
|
||||||
try {
|
|
||||||
SupplierBasedCdtVariableSubstitutor macroSubstitutor = new BuildfileMacroSubstitutor(null, EMPTY_STRING, " "); //$NON-NLS-1$
|
SupplierBasedCdtVariableSubstitutor macroSubstitutor = new BuildfileMacroSubstitutor(null, EMPTY_STRING, " "); //$NON-NLS-1$
|
||||||
Tool tool = (Tool)optCategory;
|
Tool tool = (Tool)optCategory;
|
||||||
String[] flags = tool.getToolCommandFlags(
|
String[] flags = tool.getToolCommandFlags(
|
||||||
|
@ -164,7 +163,6 @@ public class ToolSettingsPrefStore implements IPreferenceStore {
|
||||||
EMPTY_STRING, flags, EMPTY_STRING, EMPTY_STRING, EMPTY_STRING,
|
EMPTY_STRING, flags, EMPTY_STRING, EMPTY_STRING, EMPTY_STRING,
|
||||||
null,tool.getCommandLinePattern());
|
null,tool.getCommandLinePattern());
|
||||||
return cmdLInfo.getFlags();
|
return cmdLInfo.getFlags();
|
||||||
} catch (BuildException e) {}
|
|
||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
Object val = getOptionValue(name);
|
Object val = getOptionValue(name);
|
||||||
|
|
Loading…
Add table
Reference in a new issue