Skip to content

v4.8.2.1: fix: relative path handling for clang PCH header

Latest
Compare
Choose a tag to compare
@jiulongw jiulongw released this 02 Aug 19:34
cmake may generate both -include and -include-pch. Example:

c++ ... -Xclang -include-pch -Xclang /abs/path/cmake_pch.hxx.pch
        -Xclang -include -Xclang /abs/path/cmake_pch.hxx ...

Both paths needs to be converted to relative path if CCACHE_BASEDIR is
set for better cache hit rate in some CI systems.