[llvm-bugs] [Bug 49624] New: [WoA] Clang MSVC driver uses link.exe linker by default

via llvm-bugs llvm-bugs at lists.llvm.org
Thu Mar 18 00:38:09 PDT 2021


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

            Bug ID: 49624
           Summary: [WoA] Clang MSVC driver uses link.exe linker by
                    default
           Product: clang
           Version: trunk
          Hardware: PC
                OS: All
            Status: NEW
          Severity: release blocker
          Priority: P
         Component: Driver
          Assignee: unassignedclangbugs at nondot.org
          Reporter: maxim.kuvyrkov at gmail.com
                CC: llvm-bugs at lists.llvm.org, neeilans at live.com,
                    richard-llvm at metafoo.co.uk

At the moment "link.exe" is hard-coded as default linker in MSVC.cpp,
so there's no way to use LLD as default linker for MSVC driver.

For Windows on Arm this is a release blocker because link.exe is an x86_64
binary, which WoA can't emulate (only x86_32 emulation is supported), so
linking fails unless -fuse-ld=lld option is provided.

This is fixed on trunk in https://reviews.llvm.org/D98493, but needs
backporting to releases/12.x .

-- 
You are receiving this mail because:
You are on the CC list for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-bugs/attachments/20210318/754e8e77/attachment.html>


More information about the llvm-bugs mailing list