[lld][Mach-O] Fix build with Mach-O due to missing library
authorJoseph Huber <jhuber6@vols.utk.edu>
Fri, 13 Jan 2023 15:16:10 +0000 (09:16 -0600)
committerJoseph Huber <jhuber6@vols.utk.edu>
Fri, 13 Jan 2023 15:17:40 +0000 (09:17 -0600)
Summary:
The build was failing due to an undefined symbol. This is because this
function is defined in the `BitWriter` component but was not linked.

lld/MachO/CMakeLists.txt

index 9264d47..ea26889 100644 (file)
@@ -38,6 +38,7 @@ add_lld_library(lldMachO
   ${LLVM_TARGETS_TO_BUILD}
   BinaryFormat
   BitReader
+  BitWriter
   Core
   DebugInfoDWARF
   Demangle