Skip to main content
summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJeff Johnston2019-05-15 17:44:34 -0400
committerJeff Johnston2019-05-15 17:51:07 -0400
commit949dd8a45f3758794707109bfddc6069c1ec3f98 (patch)
treeefc61bb61a308f6cfc3e18499b8b19d7d8031bc4 /core/org.eclipse.cdt.core
parenta62215e851fc83e536dbd402ac35702462a7c0ff (diff)
downloadorg.eclipse.cdt-949dd8a45f3758794707109bfddc6069c1ec3f98.tar.gz
org.eclipse.cdt-949dd8a45f3758794707109bfddc6069c1ec3f98.tar.xz
org.eclipse.cdt-949dd8a45f3758794707109bfddc6069c1ec3f98.zip
Bug 547144 - Switching from Local to docker container and back fails
- fix CBuildConfigurationManager createBuildConfiguration to always ensure "" is added to the build configuration names so future references to Local will find the default build configuration in the ProjectDescription Change-Id: If15dde12befe060b4eb7c0ba2a2aeabbc1089ffa
Diffstat (limited to 'core/org.eclipse.cdt.core')
-rw-r--r--core/org.eclipse.cdt.core/src/org/eclipse/cdt/internal/core/build/CBuildConfigurationManager.java3
1 files changed, 3 insertions, 0 deletions
diff --git a/core/org.eclipse.cdt.core/src/org/eclipse/cdt/internal/core/build/CBuildConfigurationManager.java b/core/org.eclipse.cdt.core/src/org/eclipse/cdt/internal/core/build/CBuildConfigurationManager.java
index 89d2dc6fb9..572324f91c 100644
--- a/core/org.eclipse.cdt.core/src/org/eclipse/cdt/internal/core/build/CBuildConfigurationManager.java
+++ b/core/org.eclipse.cdt.core/src/org/eclipse/cdt/internal/core/build/CBuildConfigurationManager.java
@@ -166,6 +166,9 @@ public class CBuildConfigurationManager
for (IBuildConfiguration config : project.getBuildConfigs()) {
names.add(config.getName());
}
+ // need to add default config name because it can be active by
+ // default without being in the build config list used above
+ names.add(IBuildConfiguration.DEFAULT_CONFIG_NAME);
IProjectDescription desc = project.getDescription();
names.add(name);

Back to the top