aboutsummaryrefslogtreecommitdiff
path: root/clang/lib/CodeGen/CodeGenModule.cpp
diff options
context:
space:
mode:
authorLiviu Ionescu <ilg@livius.net>2023-11-20 18:14:36 +0200
committerGitHub <noreply@github.com>2023-11-20 11:14:36 -0500
commita32a2b2ceb6b4c1bbcbcb39363c8dee44daf86ab (patch)
tree6874392514df9c71617304e0d4337ed17f660351 /clang/lib/CodeGen/CodeGenModule.cpp
parent197f30597d086e4466687fa533d3142fa404b1fc (diff)
downloadllvm-a32a2b2ceb6b4c1bbcbcb39363c8dee44daf86ab.zip
llvm-a32a2b2ceb6b4c1bbcbcb39363c8dee44daf86ab.tar.gz
llvm-a32a2b2ceb6b4c1bbcbcb39363c8dee44daf86ab.tar.bz2
[clang][driver] Add <executable>/../include/c++/v1 to include path on Darwin (#70817)
On macOS, when clang is invoked via a symlink, since the InstalledDir is where the link is located, the C++ headers are not identified and the default system headers from the SDK are used. This can be undesirable if a toolchain is created by symlinking clang into a directory and placing libc++ headers in that directory with the intent of those headers overriding the SDK headers. This change solves that problem by also looking for libc++ headers in the toolchain-relative location of the executable symlink, if any.
Diffstat (limited to 'clang/lib/CodeGen/CodeGenModule.cpp')
0 files changed, 0 insertions, 0 deletions