mirror of
https://github.com/eclipse-cdt/cdt
synced 2025-06-30 21:55:31 +02:00
Bug 535972 deal with relative include paths in GCC scanner info
We weren't dealting with relative include paths returned from the call to gcc -E properly. Resolves them against the build directory before checking if their a directory. Results in them added. Tested with ESP-IDF's feature/cmake branch. Change-Id: I1e2583e03cce6380ee4382146b177978c9c81806
This commit is contained in:
parent
025742ca91
commit
3b44424539
1 changed files with 3 additions and 0 deletions
|
@ -471,6 +471,9 @@ public class GCCToolChain extends PlatformObject implements IToolChain {
|
|||
} else {
|
||||
try {
|
||||
Path dirPath = Paths.get(dir);
|
||||
if (!dirPath.isAbsolute()) {
|
||||
dirPath = buildDirectory.resolve(dirPath);
|
||||
}
|
||||
if (Files.isDirectory(dirPath)) {
|
||||
includePath.add(dirPath.toString());
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue