Skip to content

Commit b1c91ca

Browse files
hvdijksys-ce-bb
authored andcommitted
Allow llvm-spirv to be built natively in LLVM cross builds. (#2633)
When llvm-spirv is built in-tree as part of LLVM, and the LLVM build also includes libclc, libclc will require a native version of llvm-spirv to be built. To accommodate this, call setup_host_tool. This change by itself is intended to have no effect at the moment, but enables a future LLVM change. Original commit: KhronosGroup/SPIRV-LLVM-Translator@a276363ccac20bf
1 parent e26c5a7 commit b1c91ca

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

llvm-spirv/tools/llvm-spirv/CMakeLists.txt

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,8 @@ add_llvm_tool(llvm-spirv
1616
NO_INSTALL_RPATH
1717
)
1818

19+
setup_host_tool(llvm-spirv LLVM_SPIRV llvm-spirv_exe llvm-spirv_target)
20+
1921
if (LLVM_SPIRV_BUILD_EXTERNAL OR LLVM_LINK_LLVM_DYLIB)
2022
target_link_libraries(llvm-spirv PRIVATE LLVMSPIRVLib)
2123
endif()

0 commit comments

Comments
 (0)