Author: Konrad Kleine
Date: 2026-01-20T08:14:49+01:00
New Revision: d09fac453640fa1b174a82f707c4e5c063544b4b

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

LOG: [libclc] compile w/o linking builtins with SPIRV backend (#176732)

As we're only building a single file, there is no need to link. This
avoids a dependency on spriv-link when we're using the native SPIRV
backend.

Added: 
    

Modified: 
    libclc/cmake/modules/AddLibclc.cmake

Removed: 
    


################################################################################
diff  --git a/libclc/cmake/modules/AddLibclc.cmake 
b/libclc/cmake/modules/AddLibclc.cmake
index 1142963744bf1..1ba53a9528f82 100644
--- a/libclc/cmake/modules/AddLibclc.cmake
+++ b/libclc/cmake/modules/AddLibclc.cmake
@@ -408,7 +408,7 @@ function(add_libclc_builtin_set)
     set( libclc_builtins_lib ${LIBCLC_OUTPUT_LIBRARY_DIR}/${obj_suffix} )
     if ( LIBCLC_USE_SPIRV_BACKEND )
       add_custom_command( OUTPUT ${libclc_builtins_lib}
-        COMMAND ${clang_exe} --target=${ARG_TRIPLE} -x ir -o 
${libclc_builtins_lib} ${builtins_link_lib}
+        COMMAND ${clang_exe} -c --target=${ARG_TRIPLE} -x ir -o 
${libclc_builtins_lib} ${builtins_link_lib}
         DEPENDS ${clang_target} ${builtins_link_lib} ${builtins_link_lib_tgt}
       )
     else()


        
_______________________________________________
cfe-commits mailing list
[email protected]
https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

Reply via email to