[compiler-rt] e170cf5 - [compiler-rt][fuzzer] Do not link in libc++ in tests and disable exceptions
Leonard Chan via llvm-commits
llvm-commits at lists.llvm.org
Wed Sep 8 11:46:27 PDT 2021
Author: Leonard Chan
Date: 2021-09-08T11:45:52-07:00
New Revision: e170cf506170eda58449ffb80a94659be9fad81a
URL: https://github.com/llvm/llvm-project/commit/e170cf506170eda58449ffb80a94659be9fad81a
DIFF: https://github.com/llvm/llvm-project/commit/e170cf506170eda58449ffb80a94659be9fad81a.diff
LOG: [compiler-rt][fuzzer] Do not link in libc++ in tests and disable exceptions
Differential Revision: https://reviews.llvm.org/D109208
Added:
Modified:
compiler-rt/lib/fuzzer/tests/CMakeLists.txt
Removed:
################################################################################
diff --git a/compiler-rt/lib/fuzzer/tests/CMakeLists.txt b/compiler-rt/lib/fuzzer/tests/CMakeLists.txt
index 5b3e906419546..85369990889ec 100644
--- a/compiler-rt/lib/fuzzer/tests/CMakeLists.txt
+++ b/compiler-rt/lib/fuzzer/tests/CMakeLists.txt
@@ -33,7 +33,8 @@ endif()
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)
More information about the llvm-commits
mailing list