[cfe-dev] clang built from source in Mac OSX 10.14 with apple-clang/Xcode missing stdlib from include search path
Jacob Carlborg via cfe-dev
cfe-dev at lists.llvm.org
Sun Sep 29 13:28:54 PDT 2019
On 2019-09-25 14:49, Hans Wennborg via cfe-dev wrote:
> I'm always confused when trying to get locally-built Clang to find
> stdlib headers on my Mac.
>
> Last time, after upgrading to Mojave, following the TL;DR advice from
> this answer made it work for me: https://stackoverflow.com/a/52530212
>
> It would certainly be nice if this could somehow work out of the box.
When building Clang the build system could run "xcrun --show-sdk-path"
to identify the SDK path. Or to be even more flexible: when running
Clang it could run the above code and it will avoid the need for hard
coding the path to the SDK.
--
/Jacob Carlborg
More information about the cfe-dev
mailing list