]> granicus.if.org Git - clang/commitdiff
update two comments as suggested on https://reviews.llvm.org/D46843
authorNico Weber <nicolasweber@gmx.de>
Tue, 15 May 2018 16:37:00 +0000 (16:37 +0000)
committerNico Weber <nicolasweber@gmx.de>
Tue, 15 May 2018 16:37:00 +0000 (16:37 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@332370 91177308-0d34-0410-b5e6-96231b3b80d8

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

index b351ec51652de6f833f8ef04a02ad65c860e0507..96fe1fabbf71a5f7d416c02581c56b56c14ed2ff 100644 (file)
@@ -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
index 910b793e0e0d94e6681231af0bd9b84472e82396..9337092fa4f54444b772f30aeadd800a9ff32f77 100644 (file)
@@ -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