[libcxxabi,libunwind] support running tests in standalone mode
authorDominik Montada <dominik.montada@hightec-rt.com>
Mon, 24 Aug 2020 09:01:05 +0000 (11:01 +0200)
committerDominik Montada <dominik.montada@hightec-rt.com>
Wed, 14 Oct 2020 07:10:20 +0000 (09:10 +0200)
commit8c03fdf34a659925a3f09c8f54016e47ea1c7519
treef20e197b532ea3be231f58e8634b635e230369d9
parent2ad82b0ed1b4ad9e6ac462d6fe9b1247186861e5
[libcxxabi,libunwind] support running tests in standalone mode

Remove check for standalone and shared library mode in libcxxabi to
allow including tests in said mode. This check prevented running the
tests in standalone mode with static libraries, which is the case for
baremetal targets.

Fix check-unwind target trying to use a non-existent llvm-lit executable
in standalone mode. Copy the HandleOutOfTreeLLVM logic from libcxxabi to
libunwind in order to make the tests work in standalone mode.

Reviewed By: ldionne, #libc_abi, #libc

Differential Revision: https://reviews.llvm.org/D86540
libcxx/CMakeLists.txt
libcxx/cmake/Modules/HandleOutOfTreeLLVM.cmake
libcxxabi/CMakeLists.txt
libcxxabi/cmake/Modules/HandleOutOfTreeLLVM.cmake [deleted file]
libunwind/CMakeLists.txt
libunwind/test/CMakeLists.txt