summaryrefslogtreecommitdiffstats
path: root/compiler-rt/cmake/Modules/CustomLibcxx
diff options
context:
space:
mode:
authorMatt Morehouse <mascasa@google.com>2019-04-25 18:14:24 +0000
committerMatt Morehouse <mascasa@google.com>2019-04-25 18:14:24 +0000
commit42ef2c6d06fc6ca7cf9468f3b26f611e2e7da4aa (patch)
treea42edb622389132f5678c5ebf8d6af65feef6881 /compiler-rt/cmake/Modules/CustomLibcxx
parent538bbe581402668c9eb85d8153733a413b1c24da (diff)
downloadbcm5719-llvm-42ef2c6d06fc6ca7cf9468f3b26f611e2e7da4aa.tar.gz
bcm5719-llvm-42ef2c6d06fc6ca7cf9468f3b26f611e2e7da4aa.zip
[compiler-rt] Build custom libc++abi without exceptions.
Summary: Since neither compiler-rt nor the libc++ we build use exceptions, we don't need libc++abi to have them either. This resolves an issue where libFuzzer's private libc++ contains implementations for __cxa_throw and friends, causing fuzz targets built with their own C++ library to segfault during exception unwinding. See https://github.com/google/oss-fuzz/issues/2328. Reviewers: phosek, EricWF, kcc Reviewed By: phosek Subscribers: kcc, dberris, mgorny, christof, llvm-commits, metzman Tags: #llvm Differential Revision: https://reviews.llvm.org/D61053 llvm-svn: 359218
Diffstat (limited to 'compiler-rt/cmake/Modules/CustomLibcxx')
-rw-r--r--compiler-rt/cmake/Modules/CustomLibcxx/CMakeLists.txt1
1 files changed, 1 insertions, 0 deletions
diff --git a/compiler-rt/cmake/Modules/CustomLibcxx/CMakeLists.txt b/compiler-rt/cmake/Modules/CustomLibcxx/CMakeLists.txt
index 683b88e020a..3b1eb910ec8 100644
--- a/compiler-rt/cmake/Modules/CustomLibcxx/CMakeLists.txt
+++ b/compiler-rt/cmake/Modules/CustomLibcxx/CMakeLists.txt
@@ -4,6 +4,7 @@ project(custom-libcxx C CXX)
# Build static libcxxabi.
set(LIBCXXABI_STANDALONE_BUILD 1)
set(LIBCXXABI_ENABLE_SHARED OFF CACHE BOOL "")
+set(LIBCXXABI_ENABLE_EXCEPTIONS OFF CACHE BOOL "")
set(LIBCXXABI_HERMETIC_STATIC_LIBRARY ON CACHE STRING "")
set(LIBCXXABI_LIBCXX_PATH ${COMPILER_RT_LIBCXX_PATH} CACHE PATH "")
set(LIBCXXABI_INCLUDE_TESTS OFF CACHE BOOL "")
OpenPOWER on IntegriCloud