[PATCH] D27868: [libFuzzer] Diff 23 - Properly use compiler options supported on Windows.
Marcos Pividori via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Wed Dec 21 09:04:56 PST 2016
mpividori updated this revision to Diff 82240.
mpividori added a comment.
Update diff to include suggested modifications.
Repository:
rL LLVM
https://reviews.llvm.org/D27868
Files:
lib/Fuzzer/test/CMakeLists.txt
Index: lib/Fuzzer/test/CMakeLists.txt
===================================================================
--- lib/Fuzzer/test/CMakeLists.txt
+++ lib/Fuzzer/test/CMakeLists.txt
@@ -25,7 +25,13 @@
endforeach()
# Enable the coverage instrumentation (it is disabled for the Fuzzer lib).
-set(CMAKE_CXX_FLAGS "${LIBFUZZER_FLAGS_BASE} -fsanitize-coverage=trace-pc-guard,indirect-calls,trace-cmp,trace-div,trace-gep -g")
+set(CMAKE_CXX_FLAGS "${LIBFUZZER_FLAGS_BASE} -fsanitize-coverage=trace-pc-guard,indirect-calls,trace-cmp,trace-div,trace-gep")
+
+if(LLVM_COMPILER_IS_GCC_COMPATIBLE)
+ set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -g")
+elseif(CLANG_CL)
+ set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} /Z7")
+endif()
# add_libfuzzer_test(<name>
# SOURCES source0.cpp [source1.cpp ...]
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D27868.82240.patch
Type: text/x-patch
Size: 783 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20161221/a7e264f4/attachment.bin>
More information about the llvm-commits
mailing list