<html>
    <head>
      <base href="https://bugs.llvm.org/">
    </head>
    <body><table border="1" cellspacing="0" cellpadding="8">
        <tr>
          <th>Bug ID</th>
          <td><a class="bz_bug_link 
          bz_status_NEW "
   title="NEW - Build failure: lld.exe fails to link"
   href="https://bugs.llvm.org/show_bug.cgi?id=48853">48853</a>
          </td>
        </tr>

        <tr>
          <th>Summary</th>
          <td>Build failure: lld.exe fails to link
          </td>
        </tr>

        <tr>
          <th>Product</th>
          <td>lld
          </td>
        </tr>

        <tr>
          <th>Version</th>
          <td>unspecified
          </td>
        </tr>

        <tr>
          <th>Hardware</th>
          <td>PC
          </td>
        </tr>

        <tr>
          <th>OS</th>
          <td>Windows NT
          </td>
        </tr>

        <tr>
          <th>Status</th>
          <td>NEW
          </td>
        </tr>

        <tr>
          <th>Severity</th>
          <td>enhancement
          </td>
        </tr>

        <tr>
          <th>Priority</th>
          <td>P
          </td>
        </tr>

        <tr>
          <th>Component</th>
          <td>MachO
          </td>
        </tr>

        <tr>
          <th>Assignee</th>
          <td>unassignedbugs@nondot.org
          </td>
        </tr>

        <tr>
          <th>Reporter</th>
          <td>mizvekov@gmail.com
          </td>
        </tr>

        <tr>
          <th>CC</th>
          <td>gkm@fb.com, jezreel@gmail.com, llvm-bugs@lists.llvm.org, smeenai@fb.com
          </td>
        </tr></table>
      <p>
        <div>
        <pre>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 <<a href="mailto:jezng@fb.com">jezng@fb.com</a>>
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
´´´</pre>
        </div>
      </p>


      <hr>
      <span>You are receiving this mail because:</span>

      <ul>
          <li>You are on the CC list for the bug.</li>
      </ul>
    </body>
</html>