From: Nico Weber Date: Tue, 15 May 2018 16:37:00 +0000 (+0000) Subject: update two comments as suggested on https://reviews.llvm.org/D46843 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=f6d41ea320088ef75c5bbc16bb9dbaa497ea223a;p=clang update two comments as suggested on https://reviews.llvm.org/D46843 git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@332370 91177308-0d34-0410-b5e6-96231b3b80d8 --- diff --git a/tools/clang-fuzzer/CMakeLists.txt b/tools/clang-fuzzer/CMakeLists.txt index b351ec5165..96fe1fabbf 100644 --- a/tools/clang-fuzzer/CMakeLists.txt +++ b/tools/clang-fuzzer/CMakeLists.txt @@ -9,8 +9,7 @@ elseif(LLVM_USE_SANITIZE_COVERAGE) unset(DUMMY_MAIN) endif() -# Hack to bypass LLVM's cmake sources check and allow multiple libraries and -# executables from this directory. +# Needed by LLVM's CMake checks because this file defines multiple targets. set(LLVM_OPTIONAL_SOURCES ClangFuzzer.cpp DummyClangFuzzer.cpp diff --git a/tools/clang-fuzzer/proto-to-cxx/CMakeLists.txt b/tools/clang-fuzzer/proto-to-cxx/CMakeLists.txt index 910b793e0e..9337092fa4 100644 --- a/tools/clang-fuzzer/proto-to-cxx/CMakeLists.txt +++ b/tools/clang-fuzzer/proto-to-cxx/CMakeLists.txt @@ -1,8 +1,7 @@ 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. +# Needed by LLVM's CMake checks because this file defines multiple targets. set(LLVM_OPTIONAL_SOURCES proto_to_cxx.cpp proto_to_cxx_main.cpp) add_clang_library(clangProtoToCXX proto_to_cxx.cpp