[llvm] r311374 - Always compile libFuzzer with no coverage
George Karpenkov via llvm-commits
llvm-commits at lists.llvm.org
Mon Aug 21 13:12:58 PDT 2017
Author: george.karpenkov
Date: Mon Aug 21 13:12:58 2017
New Revision: 311374
URL: http://llvm.org/viewvc/llvm-project?rev=311374&view=rev
Log:
Always compile libFuzzer with no coverage
Do not compile libFuzzer itself with coverage, regardless of LLVM variables
Differential Revision: https://reviews.llvm.org/D36887
Modified:
llvm/trunk/lib/Fuzzer/CMakeLists.txt
Modified: llvm/trunk/lib/Fuzzer/CMakeLists.txt
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/Fuzzer/CMakeLists.txt?rev=311374&r1=311373&r2=311374&view=diff
==============================================================================
--- llvm/trunk/lib/Fuzzer/CMakeLists.txt (original)
+++ llvm/trunk/lib/Fuzzer/CMakeLists.txt Mon Aug 21 13:12:58 2017
@@ -24,9 +24,9 @@ endif()
set(LIBFUZZER_ENABLE ${LIBFUZZER_ENABLED_CHECK} CACHE BOOL "Build libFuzzer and its tests")
set(LIBFUZZER_ENABLE_TESTS OFF CACHE BOOL "Build libFuzzer and its tests")
-if (LLVM_USE_SANITIZE_COVERAGE)
+if (CMAKE_CXX_FLAGS MATCHES "fsanitize-coverage")
set(CMAKE_CXX_FLAGS
- "${CMAKE_CXX_FLAGS} -fno-sanitize-coverage=trace-pc-guard,edge,trace-cmp,indirect-calls,8bit-counters -Werror")
+ "${CMAKE_CXX_FLAGS} -fsanitize-coverage=0")
endif()
if (LIBFUZZER_ENABLE)
More information about the llvm-commits
mailing list