Author: morehouse Date: Wed Aug 23 12:58:07 2017 New Revision: 311592 URL: http://llvm.org/viewvc/llvm-project?rev=311592&view=rev Log: [clang-proto-fuzzer] Fix clang-proto-to-cxx build.
Modified: cfe/trunk/tools/clang-fuzzer/CMakeLists.txt cfe/trunk/tools/clang-fuzzer/proto-to-cxx/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=311592&r1=311591&r2=311592&view=diff ============================================================================== --- cfe/trunk/tools/clang-fuzzer/CMakeLists.txt (original) +++ cfe/trunk/tools/clang-fuzzer/CMakeLists.txt Wed Aug 23 12:58:07 2017 @@ -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) Modified: cfe/trunk/tools/clang-fuzzer/proto-to-cxx/CMakeLists.txt URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/tools/clang-fuzzer/proto-to-cxx/CMakeLists.txt?rev=311592&r1=311591&r2=311592&view=diff ============================================================================== --- cfe/trunk/tools/clang-fuzzer/proto-to-cxx/CMakeLists.txt (original) +++ cfe/trunk/tools/clang-fuzzer/proto-to-cxx/CMakeLists.txt Wed Aug 23 12:58:07 2017 @@ -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. _______________________________________________ cfe-commits mailing list cfe-commits@lists.llvm.org http://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits