1
0
Fork 0
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:
Doug Schaefer 2018-06-16 16:46:04 -04:00
parent 025742ca91
commit 3b44424539

View file

@ -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());
}