[clang] [clang][Darwin] Prefer the toolchain-provided libc++.dylib if there is one (PR #170303)
Louis Dionne via cfe-commits
cfe-commits at lists.llvm.org
Tue Dec 2 15:17:49 PST 2025
ldionne wrote:
> It's a problem for the dylibs because you'll end up with a broken executable for rpath reasons.
That's only the case if you do add e.g. `-lclang` but fail to provide the appropriate `-L path/to/libclang/location` where the `libclang.dylib` you actually intend to link against is located -- which can't happen because that wouldn't link today.
https://github.com/llvm/llvm-project/pull/170303
More information about the cfe-commits
mailing list