1
0
Fork 0
mirror of https://github.com/eclipse-cdt/cdt synced 2025-04-29 19:45:01 +02:00

Removed the PWD and CWD env vars from build. They were screwing up libtool under msys (pwd returned the env vars which had Windows \'ed paths). These shouldn't be needed.

This commit is contained in:
Doug Schaefer 2006-01-13 01:07:05 +00:00
parent 1198b54575
commit c5adedd369

View file

@ -160,13 +160,11 @@ public class MakeBuilder extends ACBuilder {
// Print the command for visual interaction.
launcher.showCommand(true);
// Set the environmennt, some scripts may need the CWD var to be set.
// Set the environment
HashMap envMap = new HashMap();
if (info.appendEnvironment()) {
envMap.putAll(launcher.getEnvironment());
}
envMap.put("CWD", workingDirectory.toOSString()); //$NON-NLS-1$
envMap.put("PWD", workingDirectory.toOSString()); //$NON-NLS-1$
// Add variables from build info
envMap.putAll(info.getExpandedEnvironment());
Iterator iter = envMap.entrySet().iterator();