[cfe-users] Locally built clang on macOS 10.15.7
Matthew Fernandez via cfe-users
cfe-users at lists.llvm.org
Tue Mar 16 17:11:16 PDT 2021
> On Mar 11, 2021, at 02:27, Mark Jamsek via cfe-users <cfe-users at lists.llvm.org> wrote:
>
> I checked out and built clang as per the docs Getting Started page[0].
>
> When using clang, however, compilation of C and C++ projects fail to
> find the needed headers from their respective standard libraries.
>
> I can get around this in C projects by setting the environment variable
> SDKROOT[1], and for C++ projects by setting the CPLUS_INCLUDE_PATH[2]…
Unfortunately I don’t have an answer for you and I suspect overriding environment variables is not the way to go, but to add to your bag of tricks C_INCLUDE_PATH also works for C and C++.
More information about the cfe-users
mailing list