[compiler-rt] 961d48d - Disable exceptions in libfuzzer's copy of libcxxabi.
Evgenii Stepanov via llvm-commits
llvm-commits at lists.llvm.org
Fri Nov 1 10:06:17 PDT 2019
Author: Evgenii Stepanov
Date: 2019-11-01T10:05:59-07:00
New Revision: 961d48df28ced5f9d50858b8dd931ec50b16b853
URL: https://github.com/llvm/llvm-project/commit/961d48df28ced5f9d50858b8dd931ec50b16b853
DIFF: https://github.com/llvm/llvm-project/commit/961d48df28ced5f9d50858b8dd931ec50b16b853.diff
LOG: Disable exceptions in libfuzzer's copy of libcxxabi.
External project configuration for libcxxabi now has exceptions on by
default, but this is not needed for libfuzzer.
Added:
Modified:
compiler-rt/lib/fuzzer/CMakeLists.txt
Removed:
################################################################################
diff --git a/compiler-rt/lib/fuzzer/CMakeLists.txt b/compiler-rt/lib/fuzzer/CMakeLists.txt
index 57b418216d73..80409f9f6893 100644
--- a/compiler-rt/lib/fuzzer/CMakeLists.txt
+++ b/compiler-rt/lib/fuzzer/CMakeLists.txt
@@ -144,6 +144,7 @@ if(OS_NAME MATCHES "Linux|Fuchsia" AND
CFLAGS ${TARGET_CFLAGS}
CMAKE_ARGS -DCMAKE_CXX_COMPILER_WORKS=ON
-DCMAKE_POSITION_INDEPENDENT_CODE=ON
+ -DLIBCXXABI_ENABLE_EXCEPTIONS=OFF
-DLIBCXX_ABI_NAMESPACE=__Fuzzer)
target_compile_options(RTfuzzer.${arch} PRIVATE -isystem ${LIBCXX_${arch}_PREFIX}/include/c++/v1)
add_dependencies(RTfuzzer.${arch} libcxx_fuzzer_${arch}-build)
More information about the llvm-commits
mailing list