[lld] 52d3534 - [LLD/COFF] Fix link failure due to missing component.

Matheus Izvekov via llvm-commits llvm-commits at lists.llvm.org
Mon Oct 2 15:36:33 PDT 2023


Author: Matheus Izvekov
Date: 2023-10-03T00:33:36+02:00
New Revision: 52d35345b268a85844de6fbe63f616c5cd93e500

URL: https://github.com/llvm/llvm-project/commit/52d35345b268a85844de6fbe63f616c5cd93e500
DIFF: https://github.com/llvm/llvm-project/commit/52d35345b268a85844de6fbe63f616c5cd93e500.diff

LOG: [LLD/COFF] Fix link failure due to missing component.

This was broken by https://github.com/llvm/llvm-project/commit/3923e61b96cf90123762f0e0381504efaba2d77a

We should link BitWriter into LLD/COFF since now it uses
`WriteBitcodeToFile`.

Added: 
    

Modified: 
    lld/COFF/CMakeLists.txt

Removed: 
    


################################################################################
diff  --git a/lld/COFF/CMakeLists.txt b/lld/COFF/CMakeLists.txt
index acbd2e5fe2a52ba..2bbadf75bfa1e79 100644
--- a/lld/COFF/CMakeLists.txt
+++ b/lld/COFF/CMakeLists.txt
@@ -25,6 +25,7 @@ add_lld_library(lldCOFF
   LINK_COMPONENTS
   ${LLVM_TARGETS_TO_BUILD}
   BinaryFormat
+  BitWriter
   Core
   DebugInfoCodeView
   DebugInfoDWARF


        


More information about the llvm-commits mailing list