Skip to main content
aboutsummaryrefslogtreecommitdiffstats
path: root/core
diff options
context:
space:
mode:
authorJeff Johnston2018-02-02 22:05:30 +0000
committerJeff Johnston2018-02-02 22:05:30 +0000
commite8f619c3447ea7f47df74680660151fb07da3c4a (patch)
treeec074068748502dcf2c31d3f38f6438f120a6098 /core
parent1ae547908b490c5f54c5847264533617813c07fe (diff)
downloadorg.eclipse.cdt-e8f619c3447ea7f47df74680660151fb07da3c4a.tar.gz
org.eclipse.cdt-e8f619c3447ea7f47df74680660151fb07da3c4a.tar.xz
org.eclipse.cdt-e8f619c3447ea7f47df74680660151fb07da3c4a.zip
Bug 529121 - "Build target" has stopped working in CDT 9.4.0
- default environment using EnvironmentReader in CommandLauncherWrapper class in CommandLauncherManager if no environment set for wrapper to match behaviour of CommandLauncher Change-Id: I71ff37b3d8f2049dc705e97bf28f939ac78bd390
Diffstat (limited to 'core')
-rw-r--r--core/org.eclipse.cdt.core/src/org/eclipse/cdt/core/CommandLauncherManager.java4
1 files changed, 3 insertions, 1 deletions
diff --git a/core/org.eclipse.cdt.core/src/org/eclipse/cdt/core/CommandLauncherManager.java b/core/org.eclipse.cdt.core/src/org/eclipse/cdt/core/CommandLauncherManager.java
index 6b87ed66501..e9e6a4f4fb9 100644
--- a/core/org.eclipse.cdt.core/src/org/eclipse/cdt/core/CommandLauncherManager.java
+++ b/core/org.eclipse.cdt.core/src/org/eclipse/cdt/core/CommandLauncherManager.java
@@ -20,6 +20,7 @@ import java.util.Properties;
import org.eclipse.cdt.core.build.ICBuildConfiguration;
import org.eclipse.cdt.core.settings.model.ICConfigurationDescription;
import org.eclipse.cdt.core.settings.model.ICLanguageSettingEntry;
+import org.eclipse.cdt.utils.spawner.EnvironmentReader;
import org.eclipse.core.resources.IProject;
import org.eclipse.core.runtime.CoreException;
import org.eclipse.core.runtime.IConfigurationElement;
@@ -119,7 +120,8 @@ public class CommandLauncherManager {
if (launcher != null) {
return launcher.getEnvironment();
}
- return null;
+ // for backwards compatibility to ensure path is set up
+ return EnvironmentReader.getEnvVars();
}
@Override

Back to the top