mirror of
https://github.com/eclipse-cdt/cdt
synced 2025-07-20 07:25:23 +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
(cherry picked from commit 3b44424539
)
This commit is contained in:
parent
cf410f1982
commit
166c4ce28f
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