-
Notifications
You must be signed in to change notification settings - Fork 751
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Building with -DLLVM_BUILD_LLVM_DYLIB=ON -DLLVM_LINK_LLVM_DYLIB=ON is broken #1322
Comments
This patch diff --git a/llvm-spirv/tools/llvm-spirv/CMakeLists.txt b/llvm-spirv/tools/llvm-spirv/CMakeLists.txt
index 9aa96d9c41f..501c0daf4b6 100644
--- a/llvm-spirv/tools/llvm-spirv/CMakeLists.txt
+++ b/llvm-spirv/tools/llvm-spirv/CMakeLists.txt
@@ -14,7 +14,7 @@ add_llvm_tool(llvm-spirv
NO_INSTALL_RPATH
)
-if (LLVM_SPIRV_BUILD_EXTERNAL)
+if (LLVM_SPIRV_BUILD_EXTERNAL OR LLVM_LINK_LLVM_DYLIB)
target_link_libraries(llvm-spirv PRIVATE LLVMSPIRVLib)
endif()
seems to fix the build., though I don't know if that is the correct fix or just a workaround. |
@fwyzard, thanks for fixing this issue. |
Out of curiosity: why do you build this configuration? |
In fact, we have been using
So now we are switching from |
So you
? NOTE: we distribute our tools with LLVM libraries linked statically. |
Yes, that's the idea, though I haven't checked the final size of the installation recently. |
Fixed by #1323, and upstream by KhronosGroup/SPIRV-LLVM-Translator#458 . |
Building with
-DLLVM_BUILD_LLVM_DYLIB=ON -DLLVM_LINK_LLVM_DYLIB=ON
is broken as of 0d56408 :results in
The text was updated successfully, but these errors were encountered: