[libc-commits] [clang] [libc] [llvm] [libc] Add support to build and run libc tests with spirv backend (PR #208129)

Joseph Huber via libc-commits libc-commits at lists.llvm.org
Sun Jul 12 11:32:58 PDT 2026


================
@@ -586,16 +589,18 @@ function(add_integration_test test_name)
   list(REMOVE_DUPLICATES link_object_files)
 
   # Make a library of all deps
-  add_library(
-    ${fq_target_name}.__libc__
-    STATIC
-    EXCLUDE_FROM_ALL
-    ${link_object_files}
-  )
-  set_target_properties(${fq_target_name}.__libc__
-      PROPERTIES ARCHIVE_OUTPUT_DIRECTORY ${CMAKE_CURRENT_BINARY_DIR})
-  set_target_properties(${fq_target_name}.__libc__
-      PROPERTIES ARCHIVE_OUTPUT_NAME ${fq_target_name}.libc)
+  if(NOT LIBC_TARGET_ARCHITECTURE_IS_SPIRV)
----------------
jhuber6 wrote:

Why doesn't this work? Does the linker we use for SPIR-V not handle static libraries properly? I thought there was some work to do that.

https://github.com/llvm/llvm-project/pull/208129


More information about the libc-commits mailing list