From: Marcos Pividori Date: Fri, 20 Jan 2017 22:48:47 +0000 (+0000) Subject: [libFuzzer] Properly use compiler options supported on Windows. X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=40dcc15c2508410250f8ea473965efed1f494a34;p=llvm [libFuzzer] Properly use compiler options supported on Windows. Replace "-g" by "-gline-tables-only". "-g" is not supported by clang-cl. Differential Revision: https://reviews.llvm.org/D27868 git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@292668 91177308-0d34-0410-b5e6-96231b3b80d8 --- diff --git a/lib/Fuzzer/test/CMakeLists.txt b/lib/Fuzzer/test/CMakeLists.txt index a629d1be50b..ed843139328 100644 --- a/lib/Fuzzer/test/CMakeLists.txt +++ b/lib/Fuzzer/test/CMakeLists.txt @@ -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( # SOURCES source0.cpp [source1.cpp ...]