[PATCH] D124314: lldb: Disable unittests if llvm_gtest target does not exist
Jonas Devlieghere via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Mon Aug 15 09:54:48 PDT 2022
This revision was automatically updated to reflect the committed changes.
Closed by commit rG350755d94d6b: [llvm] Include utils/unittest before projects and runtimes (authored by JDevlieghere).
Herald added a project: LLVM.
Herald added a subscriber: llvm-commits.
Changed prior to commit:
https://reviews.llvm.org/D124314?vs=451684&id=452722#toc
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D124314/new/
https://reviews.llvm.org/D124314
Files:
llvm/CMakeLists.txt
Index: llvm/CMakeLists.txt
===================================================================
--- llvm/CMakeLists.txt
+++ llvm/CMakeLists.txt
@@ -1147,6 +1147,9 @@
add_subdirectory(utils/UnicodeData)
add_subdirectory(utils/yaml-bench)
add_subdirectory(utils/split-file)
+ if( LLVM_INCLUDE_TESTS )
+ add_subdirectory(utils/unittest)
+ endif()
else()
if ( LLVM_INCLUDE_TESTS )
message(FATAL_ERROR "Including tests when not building utils will not work.
@@ -1191,9 +1194,6 @@
add_subdirectory(utils/lit)
add_subdirectory(test)
add_subdirectory(unittests)
- if( LLVM_INCLUDE_UTILS )
- add_subdirectory(utils/unittest)
- endif()
if (WIN32)
# This utility is used to prevent crashing tests from calling Dr. Watson on
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D124314.452722.patch
Type: text/x-patch
Size: 759 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20220815/3be68a79/attachment.bin>
More information about the llvm-commits
mailing list