1
0
Fork 0
mirror of https://github.com/eclipse-cdt/cdt synced 2025-04-29 19:45:01 +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 1ae547908b
commit e8f619c344

View file

@ -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