From 961d48df28ced5f9d50858b8dd931ec50b16b853 Mon Sep 17 00:00:00 2001 From: Evgenii Stepanov Date: Fri, 1 Nov 2019 10:04:38 -0700 Subject: [PATCH] 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. --- compiler-rt/lib/fuzzer/CMakeLists.txt | 1 + 1 file changed, 1 insertion(+) diff --git a/compiler-rt/lib/fuzzer/CMakeLists.txt b/compiler-rt/lib/fuzzer/CMakeLists.txt index 57b4182..80409f9 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) -- 2.7.4