]> granicus.if.org Git - clang/commitdiff
[clang-proto-fuzzer] Fix clang-proto-to-cxx build.
authorMatt Morehouse <mascasa@google.com>
Wed, 23 Aug 2017 19:58:07 +0000 (19:58 +0000)
committerMatt Morehouse <mascasa@google.com>
Wed, 23 Aug 2017 19:58:07 +0000 (19:58 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@311592 91177308-0d34-0410-b5e6-96231b3b80d8

tools/clang-fuzzer/CMakeLists.txt
tools/clang-fuzzer/proto-to-cxx/CMakeLists.txt

index 694dd585c272ba7c488df26cb127afc8bc507536..82c3b0eb0295f00093d3d9449f6444398c95b5e9 100644 (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)
index 1c3c504ceff51c113d0636ed9ba783afcd829a8a..36235a584bd1865596b80a335fb6da649a3fbeae 100644 (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.