[Lldb-commits] [lldb] r352382 - [CMake] Quick-Fix targets don't exist when building against LLVM install-tree with LLDB_INCLUDE_TESTS=ON
Stefan Granitz via lldb-commits
lldb-commits at lists.llvm.org
Mon Jan 28 08:15:28 PST 2019
Author: stefan.graenitz
Date: Mon Jan 28 08:15:27 2019
New Revision: 352382
URL: http://llvm.org/viewvc/llvm-project?rev=352382&view=rev
Log:
[CMake] Quick-Fix targets don't exist when building against LLVM install-tree with LLDB_INCLUDE_TESTS=ON
The issue came up during release testing for LLVM 8: https://bugs.llvm.org/show_bug.cgi?id=40443
Differential Revision: https://reviews.llvm.org/D57233
Modified:
lldb/trunk/cmake/modules/AddLLDB.cmake
lldb/trunk/lit/CMakeLists.txt
Modified: lldb/trunk/cmake/modules/AddLLDB.cmake
URL: http://llvm.org/viewvc/llvm-project/lldb/trunk/cmake/modules/AddLLDB.cmake?rev=352382&r1=352381&r2=352382&view=diff
==============================================================================
--- lldb/trunk/cmake/modules/AddLLDB.cmake (original)
+++ lldb/trunk/cmake/modules/AddLLDB.cmake Mon Jan 28 08:15:27 2019
@@ -88,7 +88,9 @@ function(add_lldb_library name)
# Hack: only some LLDB libraries depend on the clang autogenerated headers,
# but it is simple enough to make all of LLDB depend on some of those
# headers without negatively impacting much of anything.
- add_dependencies(${name} clang-tablegen-targets)
+ if(NOT LLDB_BUILT_STANDALONE)
+ add_dependencies(${name} clang-tablegen-targets)
+ endif()
# Add in any extra C++ compilation flags for this library.
target_compile_options(${name} PRIVATE ${PARAM_EXTRA_CXXFLAGS})
Modified: lldb/trunk/lit/CMakeLists.txt
URL: http://llvm.org/viewvc/llvm-project/lldb/trunk/lit/CMakeLists.txt?rev=352382&r1=352381&r2=352382&view=diff
==============================================================================
--- lldb/trunk/lit/CMakeLists.txt (original)
+++ lldb/trunk/lit/CMakeLists.txt Mon Jan 28 08:15:27 2019
@@ -26,9 +26,6 @@ list(APPEND LLDB_TEST_DEPS
llvm-config
llvm-mc
llvm-objcopy
- FileCheck
- count
- not
)
if(TARGET lld)
@@ -55,6 +52,14 @@ configure_lit_site_cfg(
${CMAKE_CURRENT_SOURCE_DIR}/Suite/lit.site.cfg.in
${CMAKE_CURRENT_BINARY_DIR}/Suite/lit.site.cfg)
+if(NOT LLDB_BUILT_STANDALONE)
+ list(APPEND LLDB_TEST_DEPS
+ FileCheck
+ count
+ not
+ )
+endif()
+
add_lit_testsuite(check-lldb-lit "Running lldb lit test suite"
${CMAKE_CURRENT_BINARY_DIR}
DEPENDS ${LLDB_TEST_DEPS}
More information about the lldb-commits
mailing list