[debuginfo-tests] 161ae1f - [CMake] Add optional lldb dependency to DEBUGINFO_TEST_DEPS

Fangrui Song via llvm-commits llvm-commits at lists.llvm.org
Thu Jun 25 18:28:51 PDT 2020


Author: Fangrui Song
Date: 2020-06-25T18:28:43-07:00
New Revision: 161ae1f39816edf667aaa190bce702a86879c7bd

URL: https://github.com/llvm/llvm-project/commit/161ae1f39816edf667aaa190bce702a86879c7bd
DIFF: https://github.com/llvm/llvm-project/commit/161ae1f39816edf667aaa190bce702a86879c7bd.diff

LOG: [CMake] Add optional lldb dependency to DEBUGINFO_TEST_DEPS

if(TARGET asan) is still brittle as it depends on the order of
compiler-rt and debuginfo-tests in LLVM_ENABLE_PROJECTS.

Added: 
    

Modified: 
    debuginfo-tests/CMakeLists.txt

Removed: 
    


################################################################################
diff  --git a/debuginfo-tests/CMakeLists.txt b/debuginfo-tests/CMakeLists.txt
index 429e7e346bc1..a00e3f6ce628 100644
--- a/debuginfo-tests/CMakeLists.txt
+++ b/debuginfo-tests/CMakeLists.txt
@@ -22,13 +22,19 @@ set(DEBUGINFO_TEST_DEPS
   not
   )
 
-# llgdb-tests/asan.c and other asan* files.
-if(TARGET asan)
-  list(APPEND DEBUGINFO_TEST_DEPS asan)
+if("compiler-rt" IN_LIST LLVM_ENABLE_PROJECTS)
+  # llgdb-tests/asan.c and other asan* files.
+  if(TARGET asan)
+    list(APPEND DEBUGINFO_TEST_DEPS asan)
+  endif()
+  # llgdb-tests/safestack.c
+  if(TARGET safestack)
+    list(APPEND DEBUGINFO_TEST_DEPS safestack)
+  endif()
 endif()
-# llgdb-tests/safestack.c
-if(TARGET safestack)
-  list(APPEND DEBUGINFO_TEST_DEPS safestack)
+# Many dexter tests depend on lldb.
+if("lldb" IN_LIST LLVM_ENABLE_PROJECTS)
+  list(APPEND DEBUGINFO_TEST_DEPS lldb lldb-server)
 endif()
 
 # The Windows builder scripts pass -fuse-ld=lld.


        


More information about the llvm-commits mailing list