https://bugs.llvm.org/show_bug.cgi?id=48853

            Bug ID: 48853
           Summary: Build failure: lld.exe fails to link
           Product: lld
           Version: unspecified
          Hardware: PC
                OS: Windows NT
            Status: NEW
          Severity: enhancement
          Priority: P
         Component: MachO
          Assignee: [email protected]
          Reporter: [email protected]
                CC: [email protected], [email protected],
                    [email protected], [email protected]

Compiling current main LLD under MSVC, I get the following error:
´´´
LINK : fatal error LNK1104: cannot open file 'LLVMObjCARC.lib'
´´´

Reverting this recent commit fixes it:

´´´
commit 34e8fcf63f823ebc5a36166c12c01c3a49deea0b
Author: Jez Ng <[email protected]>
Date:   Wed Jan 20 20:41:24 2021 -0500

    [lld-macho] Add dependency on ObjCARC to fix shared build

diff --git a/lld/MachO/CMakeLists.txt b/lld/MachO/CMakeLists.txt
index b76c120802a1..0279b2edcc3a 100644
--- a/lld/MachO/CMakeLists.txt
+++ b/lld/MachO/CMakeLists.txt
@@ -31,6 +31,7 @@ add_lld_library(lldMachO2
   DebugInfoDWARF
   LTO
   MC
+  ObjCARC
   Object
   Option
   Passes
´´´

-- 
You are receiving this mail because:
You are on the CC list for the bug.
_______________________________________________
llvm-bugs mailing list
[email protected]
https://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-bugs

Reply via email to