[PATCH] D20662: [LibFuzzer] Emit error during configuration if LLVM_USE_SANITIZER is not correctly set.
Dan Liew via llvm-commits
llvm-commits at lists.llvm.org
Thu May 26 14:01:41 PDT 2016
This revision was automatically updated to reflect the committed changes.
Closed by commit rL270913: [LibFuzzer] Emit error if LLVM_USE_SANITIZER is not correctly set. (authored by delcypher).
Changed prior to commit:
http://reviews.llvm.org/D20662?vs=58567&id=58696#toc
Repository:
rL LLVM
http://reviews.llvm.org/D20662
Files:
llvm/trunk/lib/Fuzzer/CMakeLists.txt
Index: llvm/trunk/lib/Fuzzer/CMakeLists.txt
===================================================================
--- llvm/trunk/lib/Fuzzer/CMakeLists.txt
+++ llvm/trunk/lib/Fuzzer/CMakeLists.txt
@@ -2,6 +2,12 @@
# Disable the coverage and sanitizer instrumentation for the fuzzer itself.
set(CMAKE_CXX_FLAGS "${LIBFUZZER_FLAGS_BASE} -fno-sanitize=all -fno-sanitize-coverage=edge,trace-cmp,indirect-calls,8bit-counters -Werror")
if( LLVM_USE_SANITIZE_COVERAGE )
+ if(NOT "${LLVM_USE_SANITIZER}" STREQUAL "Address")
+ message(FATAL_ERROR
+ "LibFuzzer and its tests require LLVM_USE_SANITIZER=Address and "
+ "LLVM_USE_SANITIZE_COVERAGE=YES to be set."
+ )
+ endif()
add_library(LLVMFuzzerNoMainObjects OBJECT
FuzzerCrossOver.cpp
FuzzerTraceState.cpp
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D20662.58696.patch
Type: text/x-patch
Size: 783 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20160526/3ac5b9e0/attachment.bin>
More information about the llvm-commits
mailing list