> On Mar 11, 2021, at 02:27, Mark Jamsek via cfe-users > <cfe-users@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++. _______________________________________________ cfe-users mailing list cfe-users@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-users