[libc-commits] [libc] a048df8 - [libc][Obvious] Add back CMake logic which was mistakenly deleted earlier.

Siva Chandra via libc-commits libc-commits at lists.llvm.org
Mon Mar 6 00:26:39 PST 2023


Author: Siva Chandra
Date: 2023-03-06T00:26:07-08:00
New Revision: a048df8707a1724093f7c442f8b78cd49583f470

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

LOG: [libc][Obvious] Add back CMake logic which was mistakenly deleted earlier.

Added: 
    

Modified: 
    libc/cmake/modules/LLVMLibCTestRules.cmake

Removed: 
    


################################################################################
diff  --git a/libc/cmake/modules/LLVMLibCTestRules.cmake b/libc/cmake/modules/LLVMLibCTestRules.cmake
index 6cc98b1ba14d3..3dafa4eb7a403 100644
--- a/libc/cmake/modules/LLVMLibCTestRules.cmake
+++ b/libc/cmake/modules/LLVMLibCTestRules.cmake
@@ -466,6 +466,14 @@ function(add_integration_test test_name)
   # collect the object files with public names of entrypoints.
   get_object_files_for_test(
       link_object_files skipped_entrypoints_list ${fq_deps_list})
+  if(skipped_entrypoints_list)
+    if(LIBC_CMAKE_VERBOSE_LOGGING)
+      set(msg "Skipping unittest ${fq_target_name} as it has missing deps: "
+              "${skipped_entrypoints_list}.")
+      message(STATUS ${msg})
+    endif()
+    return()
+  endif()
   # We add the memory functions objects explicitly. Note that we
   # are adding objects of the targets which contain the public
   # C symbols. This is because compiler codegen can emit calls to


        


More information about the libc-commits mailing list