mirror of
https://github.com/intel/llvm.git
synced 2026-01-14 03:50:17 +08:00
When libc++ is bootstrapped with clang, the resulting clang uses the just-built libc++ headers from <install>/bin/../include/c++/v1. However, before this patch, clang would still use the system-provided libc++.dylib (usually in the Apple SDK) because it would fail to add the corresponding linker flag to find the just-built libc++. After this patch, Clang will instead link against the toolchain provided `libc++.dylib` in `<install>/lib` if it exists, which will result in programs being linked against corresponding libc++ headers and dylib. Fixes #77653 rdar://107060541