I'm just trying to understand how to use Clang/LLVM on Windows (not Microsoft Clanf/C2 toolchain).
please clarify my understanding: here is a description of the process.
do I understand this right, to produce executable these steps should be performed explicitly :
or implicitly:
however, in the manual above, it's recommended to use Microsoft Linker (link.exe), why?
link.exe is the standard linker on Windows and (as of LLVM 3.9) can generate pdb debug info for debugging with visual studio. Link.exe does not preserve DWARF debug info if you intend to use lldb.
lld will produce valid DWARF debug info, but the last time I checked (I think around LLVM 3.7) it only worked for x86. It will link an x64 executable, but not provide valid debug info.
more info here. http://lld.llvm.org/windows_support.html
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With