[clang-proto-fuzzer] Fix clang-proto-to-cxx build.

llvm-svn: 311592
This commit is contained in:
Matt Morehouse 2017-08-23 19:58:07 +00:00
parent a4bb80b211
commit c01994b5fe
2 changed files with 2 additions and 0 deletions

View File

@ -1,5 +1,6 @@
if( LLVM_USE_SANITIZE_COVERAGE )
set(LLVM_LINK_COMPONENTS ${LLVM_TARGETS_TO_BUILD})
set(CXX_FLAGS_NOFUZZ ${CMAKE_CXX_FLAGS})
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -fsanitize=fuzzer")
if(CLANG_ENABLE_PROTO_FUZZER)

View File

@ -1,4 +1,5 @@
set(LLVM_LINK_COMPONENTS ${LLVM_TARGETS_TO_BUILD})
set(CMAKE_CXX_FLAGS ${CXX_FLAGS_NOFUZZ})
# Hack to bypass LLVM's CMake source checks so we can have both a library and
# an executable built from this directory.