[PATCH] D109208: [compiler-rt][fuzzer] Do not link in libc++ in tests and disable exceptions
Leonard Chan via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Wed Sep 8 11:46:37 PDT 2021
This revision was automatically updated to reflect the committed changes.
Closed by commit rGe170cf506170: [compiler-rt][fuzzer] Do not link in libc++ in tests and disable exceptions (authored by leonardchan).
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D109208/new/
https://reviews.llvm.org/D109208
Files:
compiler-rt/lib/fuzzer/tests/CMakeLists.txt
Index: compiler-rt/lib/fuzzer/tests/CMakeLists.txt
===================================================================
--- compiler-rt/lib/fuzzer/tests/CMakeLists.txt
+++ compiler-rt/lib/fuzzer/tests/CMakeLists.txt
@@ -33,7 +33,8 @@
if(CMAKE_SYSTEM_NAME STREQUAL "Linux" AND
COMPILER_RT_LIBCXX_PATH AND
COMPILER_RT_LIBCXXABI_PATH)
- list(APPEND LIBFUZZER_UNITTEST_CFLAGS -nostdinc++)
+ list(APPEND LIBFUZZER_UNITTEST_CFLAGS -nostdinc++ -fno-exceptions)
+ list(APPEND LIBFUZZER_UNITTEST_LINK_FLAGS -nostdlib++ -fno-exceptions)
endif()
if ("-fvisibility=hidden" IN_LIST LIBFUZZER_CFLAGS)
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D109208.371408.patch
Type: text/x-patch
Size: 602 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20210908/369c69a5/attachment.bin>
More information about the llvm-commits
mailing list