[llvm] [NFC][DirectX] Fix build failure (PR #155441)

via llvm-commits llvm-commits at lists.llvm.org
Tue Aug 26 09:50:34 PDT 2025


llvmbot wrote:


<!--LLVM PR SUMMARY COMMENT-->

@llvm/pr-subscribers-backend-directx

Author: Rahul Joshi (jurahul)

<details>
<summary>Changes</summary>

Add `BinaryFormat` to `LINK_COMPONENTS` to fix linker error finding symbols `llvm::dxbc::getRootParameterTypes` and
`llvm::dxbc::getShaderVisibility`

---
Full diff: https://github.com/llvm/llvm-project/pull/155441.diff


1 Files Affected:

- (modified) llvm/lib/Target/DirectX/CMakeLists.txt (+1) 


``````````diff
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

``````````

</details>


https://github.com/llvm/llvm-project/pull/155441


More information about the llvm-commits mailing list