[libc-commits] [libc] Fix libc building errors for SPIRV target (PR #197381)

Joseph Huber via libc-commits libc-commits at lists.llvm.org
Wed May 13 05:11:10 PDT 2026


================
@@ -412,7 +412,7 @@ add_subdirectory(hdr)
 add_subdirectory(src)
 add_subdirectory(utils)
 
-if(LLVM_LIBC_FULL_BUILD)
+if(LLVM_LIBC_FULL_BUILD AND NOT LIBC_TARGET_ARCHITECTURE_IS_SPIRV)
----------------
jhuber6 wrote:

Why can't SPIR-V build the startup code? I thought that there were recent additions to the backend that let us handle global constructors. Guessing it's because it references atexit?

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


More information about the libc-commits mailing list