mirror of
https://github.com/eclipse-cdt/cdt
synced 2025-08-13 19:25:38 +02:00
initial fix for [Bug 186412] -shared option not checked by default for Shared Library artifact
This commit is contained in:
parent
ed17c0ef66
commit
a253a6510b
2 changed files with 5 additions and 5 deletions
|
@ -125,7 +125,7 @@ public class ManagedOptionValueHandler implements
|
|||
break;
|
||||
case IOption.INCLUDE_PATH:
|
||||
case IOption.UNDEF_INCLUDE_PATH:
|
||||
if (Arrays.equals(option.getIncludePaths(), (String[])defaultValue)) {
|
||||
if (Arrays.equals(option.getBasicStringListValue(), (String[])defaultValue)) {
|
||||
return true;
|
||||
}
|
||||
break;
|
||||
|
@ -136,7 +136,7 @@ public class ManagedOptionValueHandler implements
|
|||
break;
|
||||
case IOption.PREPROCESSOR_SYMBOLS:
|
||||
case IOption.UNDEF_PREPROCESSOR_SYMBOLS:
|
||||
if (Arrays.equals(option.getDefinedSymbols(), (String[])defaultValue)) {
|
||||
if (Arrays.equals(option.getBasicStringListValue(), (String[])defaultValue)) {
|
||||
return true;
|
||||
}
|
||||
break;
|
||||
|
|
|
@ -2595,7 +2595,7 @@ public class Tool extends HoldsOptions implements ITool, IOptionCategory, IMatch
|
|||
new FileContextData(inputFileLocation, outputFileLocation, option, this));
|
||||
if(info != null){
|
||||
macroSubstitutor.setMacroContextInfo(info);
|
||||
String[] list = CdtVariableResolver.resolveStringListValues(option.getStringListValue(), macroSubstitutor, true);
|
||||
String[] list = CdtVariableResolver.resolveStringListValues(option.getBasicStringListValue(), macroSubstitutor, true);
|
||||
if(list != null){
|
||||
for (int j = 0; j < list.length; j++) {
|
||||
String temp = list[j];
|
||||
|
@ -2614,7 +2614,7 @@ public class Tool extends HoldsOptions implements ITool, IOptionCategory, IMatch
|
|||
new FileContextData(inputFileLocation, outputFileLocation, option, this));
|
||||
if(info != null) {
|
||||
macroSubstitutor.setMacroContextInfo(info);
|
||||
String[] paths = CdtVariableResolver.resolveStringListValues(option.getIncludePaths(), macroSubstitutor, true);
|
||||
String[] paths = CdtVariableResolver.resolveStringListValues(option.getBasicStringListValue(), macroSubstitutor, true);
|
||||
if(paths != null){
|
||||
for (int j = 0; j < paths.length; j++) {
|
||||
String temp = paths[j];
|
||||
|
@ -2633,7 +2633,7 @@ public class Tool extends HoldsOptions implements ITool, IOptionCategory, IMatch
|
|||
new FileContextData(inputFileLocation, outputFileLocation, option, this));
|
||||
if(info != null){
|
||||
macroSubstitutor.setMacroContextInfo(info);
|
||||
String[] symbols = CdtVariableResolver.resolveStringListValues(option.getDefinedSymbols(), macroSubstitutor, true);
|
||||
String[] symbols = CdtVariableResolver.resolveStringListValues(option.getBasicStringListValue(), macroSubstitutor, true);
|
||||
if(symbols != null){
|
||||
for (int j = 0; j < symbols.length; j++) {
|
||||
String temp = symbols[j];
|
||||
|
|
Loading…
Add table
Reference in a new issue