1
0
Fork 0
mirror of https://github.com/eclipse-cdt/cdt synced 2025-07-05 08:05:24 +02:00

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
This commit is contained in:
Jeff Johnston 2018-02-02 17:05:30 -05:00
parent 4322789d6a
commit 15332e3287

View file

@ -19,6 +19,7 @@ import java.util.Properties;
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;
@ -118,7 +119,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