[Lldb-commits] [PATCH] D57233: [CMake] Quick-Fix targets don't exist when building against LLVM install-tree with LLDB_INCLUDE_TESTS=ON
Stefan Gränitz via Phabricator via lldb-commits
lldb-commits at lists.llvm.org
Fri Jan 25 04:55:43 PST 2019
sgraenitz created this revision.
sgraenitz added a reviewer: mgorny.
The issue came up during release testing for LLVM 8: https://bugs.llvm.org/show_bug.cgi?id=40443
https://reviews.llvm.org/D57233
Files:
cmake/modules/AddLLDB.cmake
lit/CMakeLists.txt
Index: lit/CMakeLists.txt
===================================================================
--- lit/CMakeLists.txt
+++ lit/CMakeLists.txt
@@ -26,9 +26,6 @@
llvm-config
llvm-mc
llvm-objcopy
- FileCheck
- count
- not
)
if(TARGET lld)
@@ -55,6 +52,14 @@
${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}
Index: cmake/modules/AddLLDB.cmake
===================================================================
--- cmake/modules/AddLLDB.cmake
+++ cmake/modules/AddLLDB.cmake
@@ -88,7 +88,9 @@
# 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})
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D57233.183522.patch
Type: text/x-patch
Size: 1293 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/lldb-commits/attachments/20190125/0119b430/attachment.bin>
More information about the lldb-commits
mailing list