summaryrefslogtreecommitdiff
path: root/tools/clang-fuzzer
diff options
context:
space:
mode:
authorMatt Morehouse <mascasa@google.com>2017-10-10 17:59:37 +0000
committerMatt Morehouse <mascasa@google.com>2017-10-10 17:59:37 +0000
commit0724462a08d75b71e3928d2c8ac5e258f2dfa51d (patch)
tree4ace2ec0bb7ef74baaf725db8416aac4f91e258e /tools/clang-fuzzer
parent0fa621d8a3f772119df37e45bf509b9583546960 (diff)
downloadclang-0724462a08d75b71e3928d2c8ac5e258f2dfa51d.tar.gz
[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
Diffstat (limited to 'tools/clang-fuzzer')
-rw-r--r--tools/clang-fuzzer/CMakeLists.txt1
1 files changed, 1 insertions, 0 deletions
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()