Skip to main content
aboutsummaryrefslogtreecommitdiffstats
path: root/cross
diff options
context:
space:
mode:
authorMorten Kristiansen2015-02-17 17:53:11 +0000
committerGerrit Code Review @ Eclipse.org2015-02-21 02:41:04 +0000
commitf680519739ded84b25cbdfc6d45d3e6fee588d55 (patch)
tree70c3949461089b8f9c20e2090fe2f9244d67d402 /cross
parent9c05b3506a86f6525d6fa34f0dfea950da34f568 (diff)
downloadorg.eclipse.cdt-f680519739ded84b25cbdfc6d45d3e6fee588d55.tar.gz
org.eclipse.cdt-f680519739ded84b25cbdfc6d45d3e6fee588d55.tar.xz
org.eclipse.cdt-f680519739ded84b25cbdfc6d45d3e6fee588d55.zip
[Bug 460131] Eclipse bin dir prepended to cross tool path
java.io.File is used to store the path to the cross tools. getAbsolutePath is invoked before variables are expanded. Hence File cannot see the path is already absolute and therefore prepends CWD. Reverted to getPath, since conversion to full path would not make sense anyway. Change-Id: I13e5b2c0d7747741926a88e120d13003b910e8c6 Signed-off-by: Morten Kristiansen <millibit@gmail.com>
Diffstat (limited to 'cross')
-rw-r--r--[-rwxr-xr-x]cross/org.eclipse.cdt.build.crossgcc/src/org/eclipse/cdt/internal/build/crossgcc/CrossEnvironmentVariableSupplier.java2
1 files changed, 1 insertions, 1 deletions
diff --git a/cross/org.eclipse.cdt.build.crossgcc/src/org/eclipse/cdt/internal/build/crossgcc/CrossEnvironmentVariableSupplier.java b/cross/org.eclipse.cdt.build.crossgcc/src/org/eclipse/cdt/internal/build/crossgcc/CrossEnvironmentVariableSupplier.java
index c29d7a56085..b5e83ea312e 100755..100644
--- a/cross/org.eclipse.cdt.build.crossgcc/src/org/eclipse/cdt/internal/build/crossgcc/CrossEnvironmentVariableSupplier.java
+++ b/cross/org.eclipse.cdt.build.crossgcc/src/org/eclipse/cdt/internal/build/crossgcc/CrossEnvironmentVariableSupplier.java
@@ -78,7 +78,7 @@ public class CrossEnvironmentVariableSupplier implements
}
public String getValue() {
- return path.getAbsolutePath();
+ return path.getPath();
}
}

Back to the top