1
0
Fork 0
mirror of https://github.com/eclipse-cdt/cdt synced 2025-04-23 22:52:11 +02:00

bug 323011: [Scanner Discovery] Source files with drive-relative paths ("/foo/bar.c") are not discovered

This commit is contained in:
Andrew Gvozdev 2010-08-18 15:30:12 +00:00
parent 27510e422c
commit a2facc29fa

View file

@ -121,7 +121,7 @@ public class GCCPerFileBOPConsoleParser extends AbstractGCCBOPConsoleParser {
IFile file= null;
IPath baseDirectory= fUtil.getBaseDirectory();
if (baseDirectory.isPrefixOf(pFilePath)) {
if (baseDirectory.isPrefixOf(pFilePath) || baseDirectory.setDevice(null).isPrefixOf(pFilePath)) {
IPath relPath = pFilePath.removeFirstSegments(baseDirectory.segmentCount());
//Note: We add the scanner-config even if the resource doesn't actually
//exist below this project (which may happen when reading existing