[clang] [libclc] [libclc] Rework libclc naming convention to use the triple (PR #177465)
Wenju He via cfe-commits
cfe-commits at lists.llvm.org
Thu Jan 22 21:05:12 PST 2026
================
@@ -419,8 +393,7 @@ function(add_libclc_builtin_set)
endif()
else()
# Non-SPIR-V targets add an extra step to optimize the bytecode
- set( obj_suffix ${ARG_ARCH_SUFFIX}.bc )
- set( libclc_builtins_lib ${LIBCLC_OUTPUT_LIBRARY_DIR}/${obj_suffix} )
+ set( libclc_builtins_lib ${LIBCLC_OUTPUT_LIBRARY_DIR}/${ARG_TRIPLE}/${LIBCLC_OUTPUT_FILENAME}.bc )
----------------
wenju-he wrote:
need to pass CPU to function add_libclc_builtin_set and change below path:
```suggestion
set( libclc_builtins_lib ${LIBCLC_OUTPUT_LIBRARY_DIR}/${ARG_TRIPLE}/${ARG_CPU}/${LIBCLC_OUTPUT_FILENAME}.bc )
```
https://github.com/llvm/llvm-project/pull/177465
More information about the cfe-commits
mailing list