Skip to main content
summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMarc-Andre Laperle2014-07-03 20:29:53 -0400
committerMarc-Andre Laperle2014-07-15 21:06:31 -0400
commitb280f247ae3d523fbcfd60ab2d883dd860711958 (patch)
tree2ddf2d2b3935b48a78fdc38bde078239c323eb26 /build/org.eclipse.cdt.autotools.core/src
parent29b783155fd3acec6c0b5b65237a70fb0e219260 (diff)
downloadorg.eclipse.cdt-b280f247ae3d523fbcfd60ab2d883dd860711958.tar.gz
org.eclipse.cdt-b280f247ae3d523fbcfd60ab2d883dd860711958.tar.xz
org.eclipse.cdt-b280f247ae3d523fbcfd60ab2d883dd860711958.zip
Bug 438476 - Fix autotools MinGW and Cygwin build
Change-Id: I10bfb868718bf564dc74d53be6ff7453f1349dc5 Signed-off-by: Marc-Andre Laperle <marc-andre.laperle@ericsson.com> Reviewed-on: https://git.eclipse.org/r/29435 Tested-by: Hudson CI
Diffstat (limited to 'build/org.eclipse.cdt.autotools.core/src')
-rw-r--r--build/org.eclipse.cdt.autotools.core/src/org/eclipse/cdt/internal/autotools/core/AutotoolsNewMakeGenerator.java4
1 files changed, 2 insertions, 2 deletions
diff --git a/build/org.eclipse.cdt.autotools.core/src/org/eclipse/cdt/internal/autotools/core/AutotoolsNewMakeGenerator.java b/build/org.eclipse.cdt.autotools.core/src/org/eclipse/cdt/internal/autotools/core/AutotoolsNewMakeGenerator.java
index 6367da4e91..5061eb2605 100644
--- a/build/org.eclipse.cdt.autotools.core/src/org/eclipse/cdt/internal/autotools/core/AutotoolsNewMakeGenerator.java
+++ b/build/org.eclipse.cdt.autotools.core/src/org/eclipse/cdt/internal/autotools/core/AutotoolsNewMakeGenerator.java
@@ -1113,9 +1113,9 @@ public class AutotoolsNewMakeGenerator extends MarkerGenerator {
String s = path.toString();
if (getOSName().equals(Platform.OS_WIN32)) {
if (getWinOSType().equals("cygwin")) {
- s = s.replaceAll("^([A-Z])(:)", "/cygdrive/$1");
+ s = s.replaceAll("^([a-zA-Z]):", "/cygdrive/$1");
} else {
- s = s.replaceAll("^([A-Z])(:)", "/$1");
+ s = s.replaceAll("^([a-zA-Z]):", "/$1");
}
}
return s;

Back to the top