Unverified Commit a32a2b2c authored by Liviu Ionescu's avatar Liviu Ionescu Committed by GitHub
Browse files

[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.
parent 197f3059
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment