<div dir="ltr">On Fri, Nov 1, 2013 at 2:51 AM, Daniel Albuschat <span dir="ltr"><<a href="mailto:d.albuschat@gmail.com" target="_blank">d.albuschat@gmail.com</a>></span> wrote:<br><div class="gmail_extra"><div class="gmail_quote">

<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">2013/10/31 Daniel Albuschat <<a href="mailto:d.albuschat@gmail.com">d.albuschat@gmail.com</a>>:<br>
<div class="im">> on the lld main page at <a href="http://lld.llvm.org" target="_blank">http://lld.llvm.org</a>, it says:<br>
><br>
> "lld is in its early stages of development.<br>
> It can currently self host on Linux x86-64 with -static."<br>
><br>
> Is this information up-to-date?<br>
<br>
</div>I made a quick test on a Windows 8 64bit system:<br>
<br>
test.c: int main () { return 42; }<br>
> clang -c test.c<br>
> lld -flavor link test.o<br>
> .\test.exe<br>
This application can not be run in Win32 mode.<br></blockquote><div><br></div><div>I think you need to add /subsystem:console for a console application.</div><div><br></div><div>The current status of Windows port of LLD is that it can link a small program like yours or little bit more complicated ones. I haven't tried to self-host LLD, but I believe it cannot do yet. The linker depends on some third party tools, namely cvtres.exe and rc.exe, for resource file. I want to eliminate that dependency in the future, though.</div>

<div><br></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
Maybe I can produce correct results by specifying -target, but I<br>
couldn't get it to even accept -flavor and -target arguments in the<br>
same command line.<br>
<br>
> lld -target x86_64-pc-win32 -flavor link test.o<br>
warning: ignoring unknown argument: -flavor<br>
<div class="HOEnZb"><div class="h5"><br>
Greetings,<br>
Daniel Albuschat<br>
_______________________________________________<br>
LLVM Developers mailing list<br>
<a href="mailto:LLVMdev@cs.uiuc.edu">LLVMdev@cs.uiuc.edu</a>         <a href="http://llvm.cs.uiuc.edu" target="_blank">http://llvm.cs.uiuc.edu</a><br>
<a href="http://lists.cs.uiuc.edu/mailman/listinfo/llvmdev" target="_blank">http://lists.cs.uiuc.edu/mailman/listinfo/llvmdev</a><br>
</div></div></blockquote></div><br></div></div>