[libc-commits] [PATCH] D139216: [libc] Skip tests that depend on undefined targets

Joseph Huber via Phabricator via libc-commits libc-commits at lists.llvm.org
Fri Dec 2 14:40:14 PST 2022


This revision was automatically updated to reflect the committed changes.
Closed by commit rGc64811259258: [libc] Skip tests that depend on undefined targets (authored by jhuber6).

Repository:
  rG LLVM Github Monorepo

CHANGES SINCE LAST ACTION
  https://reviews.llvm.org/D139216/new/

https://reviews.llvm.org/D139216

Files:
  libc/cmake/modules/LLVMLibCTestRules.cmake


Index: libc/cmake/modules/LLVMLibCTestRules.cmake
===================================================================
--- libc/cmake/modules/LLVMLibCTestRules.cmake
+++ libc/cmake/modules/LLVMLibCTestRules.cmake
@@ -16,6 +16,11 @@
   set(object_files "")
   set(skipped_list "")
   foreach(dep IN LISTS ARGN)
+    if (NOT TARGET ${dep})
+      # Skip any tests whose dependencies have not been defined.
+      list(APPEND skipped_list ${dep})
+      continue()
+    endif()
     get_target_property(dep_type ${dep} "TARGET_TYPE")
     if(NOT dep_type)
       # Target for which TARGET_TYPE property is not set do not


-------------- next part --------------
A non-text attachment was scrubbed...
Name: D139216.479747.patch
Type: text/x-patch
Size: 617 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/libc-commits/attachments/20221202/f1a59c91/attachment.bin>


More information about the libc-commits mailing list