-
Notifications
You must be signed in to change notification settings - Fork 15.2k
[NFC][DirectX] Fix build failure #155441
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
[NFC][DirectX] Fix build failure #155441
Conversation
Add `BinaryFormat` to `LINK_COMPONENTS` to fix linker error finding symbols `llvm::dxbc::getRootParameterTypes` and `llvm::dxbc::getShaderVisibility`
|
Linux CI is the ongoing LLDB test failures and unrelated to this change |
|
I suspect the failure is specific to building with shared libs |
|
@llvm/pr-subscribers-backend-directx Author: Rahul Joshi (jurahul) ChangesAdd Full diff: https://github.com/llvm/llvm-project/pull/155441.diff 1 Files Affected:
diff --git a/llvm/lib/Target/DirectX/CMakeLists.txt b/llvm/lib/Target/DirectX/CMakeLists.txt
index 8100f941c8d94..6c079517e22d6 100644
--- a/llvm/lib/Target/DirectX/CMakeLists.txt
+++ b/llvm/lib/Target/DirectX/CMakeLists.txt
@@ -41,6 +41,7 @@ add_llvm_target(DirectXCodeGen
LINK_COMPONENTS
Analysis
AsmPrinter
+ BinaryFormat
CodeGen
CodeGenTypes
Core
|
inbelic
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks for catching this. Maybe you could update the commit message to include where it was found and the reason:
The DirectX backend incorrectly did not specify it's dependency on BinaryFormat as it was a header only dependency and so it did not cause any build failures.
Add
BinaryFormattoLINK_COMPONENTSto fix the following linker error:Root cause: #154249 changed a header-only dependency to a real dependency without noticing that the dependency was missing in CMakeLists.txt