[llvm-bugs] [Bug 45880] regression: locally-built Clang can't find C++ stdlib headers on Mac
via llvm-bugs
llvm-bugs at lists.llvm.org
Wed Sep 8 13:12:15 PDT 2021
https://bugs.llvm.org/show_bug.cgi?id=45880
Louis Dionne <ldionne at apple.com> changed:
What |Removed |Added
----------------------------------------------------------------------------
Resolution|FIXED |---
Status|RESOLVED |REOPENED
--- Comment #25 from Louis Dionne <ldionne at apple.com> ---
(In reply to Sean McBride from comment #24)
>
> If `/usr/bin/clang` can do it, why can't the open source binaries do it?
The main difference is that when you invoke Apple Clang (e.g.
`/usr/bin/clang`), you're actually going through a shim that calls `xcrun
/path/to/actual/clang/inside/Xcode.app`, and that sets the SDK to use by
default. For the open-source Clang, you might or might not even have a SDK
available, cause it's possible to install LLVM Clang without having any Xcode.
Regardless, I went ahead and tried implementing it in Clang:
https://reviews.llvm.org/D109460. This patch does solve your problem but it
creates other problems as well. I opened that review to see whether this was
worth pursuing or not.
Reopening until we get to the bottom of this.
--
You are receiving this mail because:
You are on the CC list for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-bugs/attachments/20210908/dc266c4c/attachment.html>
More information about the llvm-bugs
mailing list