mirror of
https://github.com/llvm/llvm-project.git
synced 2025-04-17 14:16:42 +00:00

We always strive to test libc++ as close as possible to the way we are actually shipping it. This was approximated reasonably well by setting up the minimal driver flags when running the test suite, however we were running the test suite against the library located in the build directory. This patch improves the situation by installing the library (the headers, the built library, modules, etc) into a fake location and then running the test suite against that fake "installation root". This should open the door to getting rid of the temporary copy of the headers we make during the build process, however this is left for a future improvement. Note that this adds quite a bit of verbosity whenever running the test suite because we install the headers beforehand every time. We should be able to override this to silence it, however CMake doesn't currently give us a way to do that, see https://gitlab.kitware.com/cmake/cmake/-/issues/26085.
22 lines
954 B
CMake
22 lines
954 B
CMake
set(CMAKE_BUILD_TYPE MinSizeRel CACHE STRING "")
|
|
set(CMAKE_INSTALL_NAME_DIR "/usr/lib" CACHE STRING "")
|
|
set(CMAKE_POSITION_INDEPENDENT_CODE OFF CACHE BOOL "")
|
|
|
|
set(LIBCXX_USE_COMPILER_RT ON CACHE BOOL "")
|
|
set(LIBCXX_ABI_VERSION "1" CACHE STRING "")
|
|
set(LIBCXX_ENABLE_STATIC ON CACHE BOOL "")
|
|
set(LIBCXX_ENABLE_SHARED ON CACHE BOOL "")
|
|
set(LIBCXX_CXX_ABI libcxxabi CACHE STRING "")
|
|
set(LIBCXX_ENABLE_VENDOR_AVAILABILITY_ANNOTATIONS ON CACHE BOOL "")
|
|
set(LIBCXX_PSTL_BACKEND libdispatch CACHE STRING "")
|
|
|
|
set(LIBCXX_HERMETIC_STATIC_LIBRARY ON CACHE BOOL "")
|
|
set(LIBCXXABI_HERMETIC_STATIC_LIBRARY ON CACHE BOOL "")
|
|
|
|
set(LIBCXXABI_ENABLE_ASSERTIONS OFF CACHE BOOL "")
|
|
set(LIBCXXABI_ENABLE_FORGIVING_DYNAMIC_CAST ON CACHE BOOL "")
|
|
set(LIBCXXABI_USE_LLVM_UNWINDER OFF CACHE BOOL "") # libunwind is built separately
|
|
|
|
set(LIBCXX_TEST_CONFIG "apple-libc++-shared.cfg.in" CACHE STRING "")
|
|
set(LIBCXXABI_TEST_CONFIG "apple-libc++abi-shared.cfg.in" CACHE STRING "")
|