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

Rahul Joshi via llvm-commits llvm-commits at lists.llvm.org
Tue Aug 26 09:00:39 PDT 2025


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

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

>From b3a35b178df7e0ee447d36eb430fcbf3cc1a7afd Mon Sep 17 00:00:00 2001
From: Rahul Joshi <rjoshi at nvidia.com>
Date: Tue, 26 Aug 2025 08:58:32 -0700
Subject: [PATCH] [NFC][DirectX] Fix build failure

Add `BinaryFormat` to `LINK_COMPONENTS` to fix linker error finding
symbols `llvm::dxbc::getRootParameterTypes` and
`llvm::dxbc::getShaderVisibility`
---
 llvm/lib/Target/DirectX/CMakeLists.txt | 1 +
 1 file changed, 1 insertion(+)

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



More information about the llvm-commits mailing list