r315339 - [clang-fuzzer] Build proto-to-cxx with fuzzer-no-link.
Matt Morehouse via cfe-commits
cfe-commits at lists.llvm.org
Tue Oct 10 10:59:37 PDT 2017
Author: morehouse
Date: Tue Oct 10 10:59:37 2017
New Revision: 315339
URL: http://llvm.org/viewvc/llvm-project?rev=315339&view=rev
Log:
[clang-fuzzer] Build proto-to-cxx with fuzzer-no-link.
Makes it possible to build with any sanitizer or none at all.
Modified:
cfe/trunk/tools/clang-fuzzer/CMakeLists.txt
Modified: cfe/trunk/tools/clang-fuzzer/CMakeLists.txt
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/tools/clang-fuzzer/CMakeLists.txt?rev=315339&r1=315338&r2=315339&view=diff
==============================================================================
--- cfe/trunk/tools/clang-fuzzer/CMakeLists.txt (original)
+++ cfe/trunk/tools/clang-fuzzer/CMakeLists.txt Tue Oct 10 10:59:37 2017
@@ -3,6 +3,7 @@ set(CXX_FLAGS_NOFUZZ ${CMAKE_CXX_FLAGS})
set(DUMMY_MAIN DummyClangFuzzer.cpp)
if(LLVM_USE_SANITIZE_COVERAGE)
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -fsanitize=fuzzer")
+ set(CXX_FLAGS_NOFUZZ "${CXX_FLAGS_NOFUZZ} -fsanitize=fuzzer-no-link")
unset(DUMMY_MAIN)
endif()
More information about the cfe-commits
mailing list