From: Matt Morehouse Date: Tue, 10 Oct 2017 17:59:37 +0000 (+0000) Subject: [clang-fuzzer] Build proto-to-cxx with fuzzer-no-link. X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=0724462a08d75b71e3928d2c8ac5e258f2dfa51d;p=clang [clang-fuzzer] Build proto-to-cxx with fuzzer-no-link. Makes it possible to build with any sanitizer or none at all. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@315339 91177308-0d34-0410-b5e6-96231b3b80d8 --- diff --git a/tools/clang-fuzzer/CMakeLists.txt b/tools/clang-fuzzer/CMakeLists.txt index 4abcee3ca6..c76f41cb44 100644 --- a/tools/clang-fuzzer/CMakeLists.txt +++ b/tools/clang-fuzzer/CMakeLists.txt @@ -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()