mirror of
https://github.com/eclipse-cdt/cdt
synced 2025-06-07 17:56:01 +02:00
pwd in scanner discovery, bug 237958.
This commit is contained in:
parent
7a15b85483
commit
a736d7bf98
1 changed files with 8 additions and 0 deletions
|
@ -256,6 +256,14 @@ public class GCCPerFileBOPConsoleParserUtility extends AbstractGCCBOPConsolePars
|
||||||
if (!cwd.isAbsolute()) {
|
if (!cwd.isAbsolute()) {
|
||||||
cwd = getBaseDirectory().append(cwd);
|
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);
|
pFilePath = cwd.append(filePath);
|
||||||
}
|
}
|
||||||
return pFilePath;
|
return pFilePath;
|
||||||
|
|
Loading…
Add table
Reference in a new issue