Skip to content

Commit 66b8eb8

Browse files
authored
[SYCL][libdevice] Fix missing dependency on llvm-link (#17190)
`llvm-link` is used in `link_bc` when generating libdevice for Nvidia and AMD, but was missing from the dependency list causing issues when using custom tools.
1 parent 6f69896 commit 66b8eb8

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

libdevice/CMakeLists.txt

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,8 +35,9 @@ if(NOT EXISTS ${LIBCLC_CUSTOM_LLVM_TOOLS_BINARY_DIR})
3535
get_host_tool_path(llvm-foreach LLVM_FOREACH llvm-foreach_exe llvm-foreach_target)
3636
get_host_tool_path(llvm-spirv LLVM_SPIRV llvm-spirv_exe llvm-spirv_target)
3737
get_host_tool_path(sycl-post-link SYCL_POST_LINK sycl-post-link_exe sycl-post-link_target)
38+
get_host_tool_path(llvm-link LLVM_LINK llvm-link_exe llvm-link_target)
3839
else()
39-
foreach(tool IN ITEMS clang llvm-ar append-file clang-offload-bundler clang-offload-packager file-table-tform llvm-foreach llvm-spirv sycl-post-link)
40+
foreach(tool IN ITEMS clang llvm-ar append-file clang-offload-bundler clang-offload-packager file-table-tform llvm-foreach llvm-spirv sycl-post-link llvm-link)
4041
find_program(LLVM_CUSTOM_TOOL_${tool} ${tool}
4142
PATHS ${LIBCLC_CUSTOM_LLVM_TOOLS_BINARY_DIR} NO_DEFAULT_PATH)
4243
set(${tool}_exe ${LLVM_CUSTOM_TOOL_${tool}})

0 commit comments

Comments
 (0)