Skip to main content
aboutsummaryrefslogtreecommitdiffstats
path: root/build
diff options
context:
space:
mode:
authorMarkus Schorn2008-06-25 14:15:59 +0000
committerMarkus Schorn2008-06-25 14:15:59 +0000
commita736d7bf98270d28cc99dacc1b51246a2448c1af (patch)
tree416d3b687a14258bf686266e512518b914f1d68a /build
parent7a15b854836663043f6a468a8da197ba63f25cb7 (diff)
downloadorg.eclipse.cdt-a736d7bf98270d28cc99dacc1b51246a2448c1af.tar.gz
org.eclipse.cdt-a736d7bf98270d28cc99dacc1b51246a2448c1af.tar.xz
org.eclipse.cdt-a736d7bf98270d28cc99dacc1b51246a2448c1af.zip
pwd in scanner discovery, bug 237958.
Diffstat (limited to 'build')
-rw-r--r--build/org.eclipse.cdt.make.core/src/org/eclipse/cdt/make/internal/core/scannerconfig/gnu/GCCPerFileBOPConsoleParserUtility.java8
1 files changed, 8 insertions, 0 deletions
diff --git a/build/org.eclipse.cdt.make.core/src/org/eclipse/cdt/make/internal/core/scannerconfig/gnu/GCCPerFileBOPConsoleParserUtility.java b/build/org.eclipse.cdt.make.core/src/org/eclipse/cdt/make/internal/core/scannerconfig/gnu/GCCPerFileBOPConsoleParserUtility.java
index 24be64a68a0..10acbe78eab 100644
--- a/build/org.eclipse.cdt.make.core/src/org/eclipse/cdt/make/internal/core/scannerconfig/gnu/GCCPerFileBOPConsoleParserUtility.java
+++ b/build/org.eclipse.cdt.make.core/src/org/eclipse/cdt/make/internal/core/scannerconfig/gnu/GCCPerFileBOPConsoleParserUtility.java
@@ -256,6 +256,14 @@ public class GCCPerFileBOPConsoleParserUtility extends AbstractGCCBOPConsolePars
if (!cwd.isAbsolute()) {
cwd = getBaseDirectory().append(cwd);
}
+ if (filePath.startsWith("`pwd`")) { //$NON-NLS-1$
+ if (filePath.length() > 5 && (filePath.charAt(5) == '/' || filePath.charAt(5) == '\\')) {
+ filePath = filePath.substring(6);
+ }
+ else {
+ filePath = filePath.substring(5);
+ }
+ }
pFilePath = cwd.append(filePath);
}
return pFilePath;

Back to the top