We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent a5bef9f commit 61c7354Copy full SHA for 61c7354
llvm-spirv/tools/llvm-spirv/CMakeLists.txt
@@ -14,10 +14,18 @@ if(SPIRV_BACKEND_FOUND)
14
list(APPEND LLVM_LINK_COMPONENTS "SPIRVCodeGen")
15
endif()
16
17
+# llvm_setup_rpath messes with the rpath making llvm-spirv not
18
+# executable from the build directory in out-of-tree builds
19
+set(add_llvm_tool_options)
20
+if(LLVM_SPIRV_BUILD_EXTERNAL)
21
+ set(add_llvm_tool_options
22
+ NO_INSTALL_RPATH
23
+ )
24
+endif()
25
+
26
add_llvm_tool(llvm-spirv
27
llvm-spirv.cpp
- # llvm_setup_rpath messes with the rpath making llvm-spirv not executable from the build directory
- NO_INSTALL_RPATH
28
+ ${add_llvm_tool_options}
29
)
30
31
setup_host_tool(llvm-spirv LLVM_SPIRV llvm-spirv_exe llvm-spirv_target)
0 commit comments