Skip to main content
summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorOleg Krasilnikov2008-02-21 10:23:09 -0500
committerOleg Krasilnikov2008-02-21 10:23:09 -0500
commit287615a854c96ec9b058499af3e96b4943b9e064 (patch)
treebd799eb2d76169434ae099271e5dcfa133c9ff74
parent79e5f33c6218700084c44986fa6773d424a84287 (diff)
downloadorg.eclipse.cdt-287615a854c96ec9b058499af3e96b4943b9e064.tar.gz
org.eclipse.cdt-287615a854c96ec9b058499af3e96b4943b9e064.tar.xz
org.eclipse.cdt-287615a854c96ec9b058499af3e96b4943b9e064.zip
Bug #219684 : ApplicabilityCalculator can't set bool val in CDT4
-rw-r--r--build/org.eclipse.cdt.managedbuilder.core/src/org/eclipse/cdt/managedbuilder/internal/core/Tool.java4
1 files changed, 3 insertions, 1 deletions
diff --git a/build/org.eclipse.cdt.managedbuilder.core/src/org/eclipse/cdt/managedbuilder/internal/core/Tool.java b/build/org.eclipse.cdt.managedbuilder.core/src/org/eclipse/cdt/managedbuilder/internal/core/Tool.java
index dbc18a7345..d7188143ec 100644
--- a/build/org.eclipse.cdt.managedbuilder.core/src/org/eclipse/cdt/managedbuilder/internal/core/Tool.java
+++ b/build/org.eclipse.cdt.managedbuilder.core/src/org/eclipse/cdt/managedbuilder/internal/core/Tool.java
@@ -2569,7 +2569,9 @@ public class Tool extends HoldsOptions implements ITool, IOptionCategory, IMatch
ArrayList flags = new ArrayList();
StringBuffer sb = new StringBuffer();
for (int index = 0; index < opts.length; index++) {
- IOption option = opts[index];
+ IOption option = getOptionToSet(opts[index], false);
+ if (option == null)
+ continue;
sb.setLength( 0 );
// check to see if the option has an applicability calculator

Back to the top