diff options
author | Jonas Hahnfeld <hahnjo@hahnjo.de> | 2019-02-17 12:16:20 +0000 |
---|---|---|
committer | Jonas Hahnfeld <hahnjo@hahnjo.de> | 2019-02-17 12:16:20 +0000 |
commit | bcc157dfbc24b73d6330ff25fdb14eecd9872f42 (patch) | |
tree | 11f006591235ff9edc848c76887917987262ff03 /test/msan | |
parent | 3b34e7c533ea8837a1e11e14131edeb565a9a562 (diff) | |
download | compiler-rt-bcc157dfbc24b73d6330ff25fdb14eecd9872f42.tar.gz |
[compiler-rt] Build custom libcxx with libcxxabi
This changes add_custom_libcxx to also build libcxxabi and merges
the two into a static and hermetic library.
There are multiple advantages:
1) The resulting libFuzzer doesn't expose C++ internals and looks
like a plain C library.
2) We don't have to manually link in libstdc++ to provide cxxabi.
3) The sanitizer tests cannot interfere with an installed version
of libc++.so in LD_LIBRARY_PATH.
Differential Revision: https://reviews.llvm.org/D58013
git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@354212 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'test/msan')
-rw-r--r-- | test/msan/CMakeLists.txt | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/test/msan/CMakeLists.txt b/test/msan/CMakeLists.txt index 7919a6cd2..c6408c1ed 100644 --- a/test/msan/CMakeLists.txt +++ b/test/msan/CMakeLists.txt @@ -43,7 +43,9 @@ if(NOT COMPILER_RT_STANDALONE_BUILD) list(APPEND MSAN_TEST_DEPS msan) endif() -if(COMPILER_RT_INCLUDE_TESTS AND COMPILER_RT_LIBCXX_PATH) +if(COMPILER_RT_INCLUDE_TESTS AND + COMPILER_RT_LIBCXX_PATH AND + COMPILER_RT_LIBCXXABI_PATH) configure_lit_site_cfg( ${CMAKE_CURRENT_SOURCE_DIR}/Unit/lit.site.cfg.in ${CMAKE_CURRENT_BINARY_DIR}/Unit/lit.site.cfg) |