diff options
author | Brad King <brad.king@kitware.com> | 2019-04-08 14:04:05 (GMT) |
---|---|---|
committer | Brad King <brad.king@kitware.com> | 2019-04-08 14:12:22 (GMT) |
commit | ef41d49812f90f3d2a6edcae282a30b545df7f6d (patch) | |
tree | a04a69583bc7905ffd2989cd517639c27ce02249 /Tests/RunCMake/ParseImplicitIncludeInfo/data/hand-C-relative.input | |
parent | 6bc6fc2a7f3fa142779e3b42de8cecfcf9d4ae74 (diff) | |
download | CMake-ef41d49812f90f3d2a6edcae282a30b545df7f6d.zip CMake-ef41d49812f90f3d2a6edcae282a30b545df7f6d.tar.gz CMake-ef41d49812f90f3d2a6edcae282a30b545df7f6d.tar.bz2 |
Fix implicit include directory extraction for adaptive relative paths
In some cases GCC reports *relative* implicit include directories. They
are computed adaptively with respect to the current working directory
such that the effective implicit include directory is an unchanging
absolute path. Teach our implicit include directory extraction to
recognize such paths and normalize them.
Fixes: #19133
Diffstat (limited to 'Tests/RunCMake/ParseImplicitIncludeInfo/data/hand-C-relative.input')
-rw-r--r-- | Tests/RunCMake/ParseImplicitIncludeInfo/data/hand-C-relative.input | 21 |
1 files changed, 21 insertions, 0 deletions
diff --git a/Tests/RunCMake/ParseImplicitIncludeInfo/data/hand-C-relative.input b/Tests/RunCMake/ParseImplicitIncludeInfo/data/hand-C-relative.input new file mode 100644 index 0000000..dd846e3 --- /dev/null +++ b/Tests/RunCMake/ParseImplicitIncludeInfo/data/hand-C-relative.input @@ -0,0 +1,21 @@ +CMAKE_LANG=C +CMAKE_C_COMPILER_ABI=ELF +CMAKE_C_COMPILER_AR=/usr/bin/gcc-ar-7 +CMAKE_C_COMPILER_ARCHITECTURE_ID= +CMAKE_C_COMPILER_EXTERNAL_TOOLCHAIN= +CMAKE_C_COMPILER_ID=GNU +CMAKE_C_COMPILER_LAUNCHER= +CMAKE_C_COMPILER_LOADED=1 +CMAKE_C_COMPILER_RANLIB=/usr/bin/gcc-ranlib-7 +CMAKE_C_COMPILER_TARGET= +CMAKE_C_COMPILER_VERSION=7.3.0 +CMAKE_C_COMPILER_VERSION_INTERAL= + +This is a hand-written test case. + +#include "..." search starts here: +#include <...> search starts here: + /usr/local/include + ../../../adaptive/relative/include + /usr/include +End of search list. |