diff options
author | Dimitry Andric <dimitry@andric.com> | 2020-02-16 01:47:12 +0100 |
---|---|---|
committer | Dimitry Andric <dimitry@andric.com> | 2020-02-16 01:50:06 +0100 |
commit | 62654cab7e654384ba503d6b62b1054cde19a553 (patch) | |
tree | 2108110fa3d4c1d3dfc15df6bc0384d8da7091fe /clang/lib/CodeGen/CodeGenFunction.cpp | |
parent | 5e13e0ce4cd695a71225183ce7d3590ccc9d4559 (diff) | |
download | llvm-62654cab7e654384ba503d6b62b1054cde19a553.zip llvm-62654cab7e654384ba503d6b62b1054cde19a553.tar.gz llvm-62654cab7e654384ba503d6b62b1054cde19a553.tar.bz2 |
Restore functionality of --sysroot on FreeBSD after b18cb9c47
After b18cb9c47, clang would sometimes prefer the host C++ includes
(e.g. in /usr/include/c++/v1) before those specified via --sysroot.
While this behavior may be desirable on Linux, it is not so on FreeBSD,
where we make extensive use of --sysroot during the build of the base
system. In that case, clang must *not* search outside the sysroot,
except for its own internal headers.
Add an override addLibCxxIncludePaths() to restore the old behavior,
which is to simply append /usr/include/c++/v1 to the specified sysroot.
While here, apply clang-format to the FreeBSD specific toolchain files.
Fixes PR44923.
Diffstat (limited to 'clang/lib/CodeGen/CodeGenFunction.cpp')
0 files changed, 0 insertions, 0 deletions