[libFuzzer] Properly use compiler options supported on Windows.
authorMarcos Pividori <mpividori@google.com>
Fri, 20 Jan 2017 22:48:47 +0000 (22:48 +0000)
committerMarcos Pividori <mpividori@google.com>
Fri, 20 Jan 2017 22:48:47 +0000 (22:48 +0000)
Replace "-g" by "-gline-tables-only". "-g" is not supported by clang-cl.

Differential Revision: https://reviews.llvm.org/D27868

llvm-svn: 292668

llvm/lib/Fuzzer/test/CMakeLists.txt

index a629d1b..ed84313 100644 (file)
@@ -25,7 +25,7 @@ foreach (VARNAME ${variables_to_filter})
 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 -gline-tables-only")
 
 # add_libfuzzer_test(<name>
 #   SOURCES source0.cpp [source1.cpp ...]