Skip to main content
summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--xlc/org.eclipse.cdt.make.xlc.core/src/org/eclipse/cdt/make/xlc/core/scannerconfig/PerFileXLCScannerInfoCollector.java12
1 files changed, 4 insertions, 8 deletions
diff --git a/xlc/org.eclipse.cdt.make.xlc.core/src/org/eclipse/cdt/make/xlc/core/scannerconfig/PerFileXLCScannerInfoCollector.java b/xlc/org.eclipse.cdt.make.xlc.core/src/org/eclipse/cdt/make/xlc/core/scannerconfig/PerFileXLCScannerInfoCollector.java
index 01be0e7393..b9635c5c9c 100644
--- a/xlc/org.eclipse.cdt.make.xlc.core/src/org/eclipse/cdt/make/xlc/core/scannerconfig/PerFileXLCScannerInfoCollector.java
+++ b/xlc/org.eclipse.cdt.make.xlc.core/src/org/eclipse/cdt/make/xlc/core/scannerconfig/PerFileXLCScannerInfoCollector.java
@@ -122,9 +122,7 @@ public class PerFileXLCScannerInfoCollector implements IScannerInfoCollector3, I
ICProjectDescriptionManager descriptionManager = CoreModel.getDefault().getProjectDescriptionManager();
ICProjectDescription cProjectDescription = descriptionManager.getProjectDescription(project, true /* writable */);
ICConfigurationDescription configDes = cProjectDescription.getActiveConfiguration();
-
- boolean changedDes = false;
-
+
IToolChain toolchain = config.getToolChain();
for(ITool tool : toolchain.getTools()) {
for(IInputType inputType : tool.getInputTypes()) {
@@ -155,8 +153,8 @@ public class PerFileXLCScannerInfoCollector implements IScannerInfoCollector3, I
}
// update all the scanner config entries on the setting
- changedDes |= updateIncludeSettings(langSetting);
- changedDes |= updateMacroSettings(langSetting);
+ updateIncludeSettings(langSetting);
+ updateMacroSettings(langSetting);
}
}
@@ -164,9 +162,7 @@ public class PerFileXLCScannerInfoCollector implements IScannerInfoCollector3, I
}
}
- if(changedDes) {
- descriptionManager.setProjectDescription(project, cProjectDescription, true /* force */, monitor);
- }
+ descriptionManager.setProjectDescription(project, cProjectDescription, true /* force */, monitor);
} catch (CoreException e) {
Activator.log(e);

Back to the top