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:
parent
27510e422c
commit
a2facc29fa
1 changed files with 1 additions and 1 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Reference in a new issue