Skip to main content
summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMarc Khouzam2010-05-21 15:28:21 -0400
committerMarc Khouzam2010-05-21 15:28:21 -0400
commit629852887820dd9e65753835c6f27e236833e815 (patch)
tree18ce902cfc9b189dc50ea04409cfe33b83f32d1c
parent4e1599eb2993810817e3315366991c46f02c938b (diff)
downloadorg.eclipse.cdt-629852887820dd9e65753835c6f27e236833e815.tar.gz
org.eclipse.cdt-629852887820dd9e65753835c6f27e236833e815.tar.xz
org.eclipse.cdt-629852887820dd9e65753835c6f27e236833e815.zip
bug 303463: Building makefile project fails with "Error 141" (make) / IllegalArgumentException java exception
-rw-r--r--build/org.eclipse.cdt.make.core/src/org/eclipse/cdt/make/internal/core/scannerconfig/gnu/ScannerInfoConsoleParserUtility.java7
1 files changed, 7 insertions, 0 deletions
diff --git a/build/org.eclipse.cdt.make.core/src/org/eclipse/cdt/make/internal/core/scannerconfig/gnu/ScannerInfoConsoleParserUtility.java b/build/org.eclipse.cdt.make.core/src/org/eclipse/cdt/make/internal/core/scannerconfig/gnu/ScannerInfoConsoleParserUtility.java
index 16fc36bab8..50b3db9c36 100644
--- a/build/org.eclipse.cdt.make.core/src/org/eclipse/cdt/make/internal/core/scannerconfig/gnu/ScannerInfoConsoleParserUtility.java
+++ b/build/org.eclipse.cdt.make.core/src/org/eclipse/cdt/make/internal/core/scannerconfig/gnu/ScannerInfoConsoleParserUtility.java
@@ -87,6 +87,13 @@ public class ScannerInfoConsoleParserUtility extends AbstractGCCBOPConsoleParser
}
}
}
+ if (file!=null) {
+ String filePath = new Path(fileName).toString();
+ String foundLocation = file.getLocation().toString();
+ if (!foundLocation.endsWith(filePath)) {
+ file = null;
+ }
+ }
return file;
}

Back to the top