From fd688c6f35fe754289170de36152fccd53ed9379 Mon Sep 17 00:00:00 2001 From: Matt Morehouse Date: Thu, 12 Oct 2017 22:00:09 +0000 Subject: [PATCH] [cmake] Rename LIB_FUZZING_ENGINE to LLVM_LIB_FUZZING_ENGINE. llvm-svn: 315630 --- clang/tools/clang-format/CMakeLists.txt | 2 +- clang/tools/clang-format/fuzzer/CMakeLists.txt | 2 +- clang/tools/clang-fuzzer/CMakeLists.txt | 6 +++--- 3 files changed, 5 insertions(+), 5 deletions(-) diff --git a/clang/tools/clang-format/CMakeLists.txt b/clang/tools/clang-format/CMakeLists.txt index 466cc009b4ff..c695ba34424e 100644 --- a/clang/tools/clang-format/CMakeLists.txt +++ b/clang/tools/clang-format/CMakeLists.txt @@ -15,7 +15,7 @@ target_link_libraries(clang-format ${CLANG_FORMAT_LIB_DEPS} ) -if( LIB_FUZZING_ENGINE OR LLVM_USE_SANITIZE_COVERAGE ) +if( LLVM_LIB_FUZZING_ENGINE OR LLVM_USE_SANITIZE_COVERAGE ) add_subdirectory(fuzzer) endif() diff --git a/clang/tools/clang-format/fuzzer/CMakeLists.txt b/clang/tools/clang-format/fuzzer/CMakeLists.txt index 245186eea1f1..8f777324afdf 100644 --- a/clang/tools/clang-format/fuzzer/CMakeLists.txt +++ b/clang/tools/clang-format/fuzzer/CMakeLists.txt @@ -11,5 +11,5 @@ add_clang_executable(clang-format-fuzzer target_link_libraries(clang-format-fuzzer ${CLANG_FORMAT_LIB_DEPS} - ${LIB_FUZZING_ENGINE} + ${LLVM_LIB_FUZZING_ENGINE} ) diff --git a/clang/tools/clang-fuzzer/CMakeLists.txt b/clang/tools/clang-fuzzer/CMakeLists.txt index 2dc286ff73bb..abc501511f89 100644 --- a/clang/tools/clang-fuzzer/CMakeLists.txt +++ b/clang/tools/clang-fuzzer/CMakeLists.txt @@ -1,7 +1,7 @@ set(LLVM_LINK_COMPONENTS ${LLVM_TARGETS_TO_BUILD} FuzzMutate) set(CXX_FLAGS_NOFUZZ ${CMAKE_CXX_FLAGS}) set(DUMMY_MAIN DummyClangFuzzer.cpp) -if(DEFINED LIB_FUZZING_ENGINE) +if(LLVM_LIB_FUZZING_ENGINE) unset(DUMMY_MAIN) elseif(LLVM_USE_SANITIZE_COVERAGE) set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -fsanitize=fuzzer") @@ -50,7 +50,7 @@ if(CLANG_ENABLE_PROTO_FUZZER) target_link_libraries(clang-proto-fuzzer ${ProtobufMutator_LIBRARIES} ${PROTOBUF_LIBRARIES} - ${LIB_FUZZING_ENGINE} + ${LLVM_LIB_FUZZING_ENGINE} clangCXXProto clangHandleCXX clangProtoToCXX @@ -66,6 +66,6 @@ add_clang_executable(clang-fuzzer ) target_link_libraries(clang-fuzzer - ${LIB_FUZZING_ENGINE} + ${LLVM_LIB_FUZZING_ENGINE} clangHandleCXX )