[llvm-dev] Invoking lld for PE/COFF (Windows) linking

Reid Kleckner via llvm-dev llvm-dev at lists.llvm.org
Thu Mar 30 18:03:07 PDT 2017


On Thu, Mar 30, 2017 at 5:57 PM, Edward Diener via llvm-dev <
llvm-dev at lists.llvm.org> wrote:

> Actually just doing:
>
> clang++ -c t.cpp -o t.o --target=x86_64-windows-msvc -fmsc-version=1900
> clang++ t.o -o t.exe --target=x86_64-windows-msvc -fuse-ld=lld
>
> is not working for me. The first invocation works but the second just
> hangs and never completes. Should it work ? If not, how can I invoke the
> second to make it work properly ?


Is it actually running lld-link.exe?  Does lld-link.exe exist next to
clang++.exe? If you add -###, what linker command line is clang trying to
run?
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-dev/attachments/20170330/8b6ba1e2/attachment.html>


More information about the llvm-dev mailing list