[PATCH] D61053: [compiler-rt] Build custom libc++abi without exceptions.
Matt Morehouse via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Thu Apr 25 11:14:44 PDT 2019
This revision was automatically updated to reflect the committed changes.
Closed by commit rCRT359218: [compiler-rt] Build custom libc++abi without exceptions. (authored by morehouse, committed by ).
Herald added a project: Sanitizers.
Herald added a subscriber: Sanitizers.
Changed prior to commit:
https://reviews.llvm.org/D61053?vs=196486&id=196688#toc
Repository:
rCRT Compiler Runtime
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D61053/new/
https://reviews.llvm.org/D61053
Files:
cmake/Modules/CustomLibcxx/CMakeLists.txt
test/fuzzer/libcxx.test
Index: cmake/Modules/CustomLibcxx/CMakeLists.txt
===================================================================
--- cmake/Modules/CustomLibcxx/CMakeLists.txt
+++ cmake/Modules/CustomLibcxx/CMakeLists.txt
@@ -4,6 +4,7 @@
# 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 "")
Index: test/fuzzer/libcxx.test
===================================================================
--- test/fuzzer/libcxx.test
+++ test/fuzzer/libcxx.test
@@ -0,0 +1,15 @@
+# Ensures that the libFuzzer library does not export exceptions.
+
+RUN: %cpp_compiler %S/SimpleTest.cpp -o %t
+RUN: nm %t 2>&1 | FileCheck %s
+
+CHECK-NOT: t __cxa_allocate_dependent_exception
+CHECK-NOT: t __cxa_allocate_exception
+CHECK-NOT: t __cxa_begin_catch
+CHECK-NOT: t __cxa_call_unexpected
+CHECK-NOT: t __cxa_current_exception_type
+CHECK-NOT: t __cxa_end_catch
+CHECK-NOT: t __cxa_free_dependent_exception
+CHECK-NOT: t __cxa_free_exception
+CHECK-NOT: t __cxa_get_exception_ptr
+CHECK-NOT: t __cxa_throw
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D61053.196688.patch
Type: text/x-patch
Size: 1254 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20190425/f6be34a7/attachment.bin>
More information about the llvm-commits
mailing list