[libc-commits] [libc] Fix libc building errors for SPIRV target (PR #197381)
via libc-commits
libc-commits at lists.llvm.org
Wed May 13 06:10:55 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)
----------------
jinge90 wrote:
Hi, @jhuber6
Yes, it references atexit and exit. For GPU, exit finally depend on rpc which spirv64 target hasn't supported. Currently, spirv64 target only support some 'simple' functions which doesn't need rpc to interact between gpu and host side, for example, functions from <string.h> or <math.h>.
Thanks very much.
https://github.com/llvm/llvm-project/pull/197381
More information about the libc-commits
mailing list