[libc++] Don't override LIBCXX_CXX_ABI_INCLUDE_PATHS for libcxxrt
authorAlex Richardson <Alexander.Richardson@cl.cam.ac.uk>
Thu, 18 Jun 2020 16:07:49 +0000 (17:07 +0100)
committerAlex Richardson <Alexander.Richardson@cl.cam.ac.uk>
Thu, 18 Jun 2020 17:09:22 +0000 (18:09 +0100)
commit7142fef03d90f4f34e3f6d893f2bc4a671b9e4a5
tree7e3d22104c07f40e3b90640c79e2e26454dbcf44
parent3ce0e92f45f56fc1b93db35dec8c53dceb5c54a5
[libc++] Don't override LIBCXX_CXX_ABI_INCLUDE_PATHS for libcxxrt

When testing libc++ for our cross-compiled CheriBSD target we specify an
explicit LIBCXX_CXX_ABI_INCLUDE_PATHS for libcxxrt. The hardcoded path
/usr/include/c++/v1 was introduced in 61e89737c5daf7b65341936f88f68efb680cdcd4
and overrides any value passed on the CMake command line. Fix this by using
it as a fallback rather than a fixed default value.

Reviewed By: #libc, ldionne
Differential Revision: https://reviews.llvm.org/D82095
libcxx/cmake/Modules/HandleLibCXXABI.cmake