I've got clang built to a point where it can find the gcc toolchain it
was built with and use that gcc toolchain's C++ library.
But I want it to point to a different C++ library. That library will be
installed relative to where clang will be installed. Pointing clang to
an absolute path isn't going to work because the package may be
installed in lots of different places.
What's the best way to do this?
clang will automatically find libc++ installed relative to itself ($INSTALL_PREFIX/include/c++/v1). So if the user specifies -stdlib=libc++, or CLANG_DEFAULT_CXX_STDLIB is configured appropriately, you shouldn't need to do anything else.
If you're not using libc++, you might need to modify the way clang computes the header search paths.
"Friedman, Eli" <firstname.lastname@example.org> writes:
If you're not using libc++, you might need to modify the way clang
computes the header search paths.
Ah, I was afraid of that. Ok, thanks, at least I know what I have to