Why does clang/llvm on windows require Visual Studio's Link.exe? Why does clang/llvm on windows require Visual Studio's Link.exe? windows windows

Why does clang/llvm on windows require Visual Studio's Link.exe?


Because no one has written a linker for LLVM.

There is a project to do so (called, unimaginatively lld) but it's not ready yet.

See http://lld.llvm.org for more details.

On the mac, people use Apple's linker, ld.

On Linux, most people use the gnu linker, usually (also) named ld


Try MinGW-W64's ld. I've been using it with llvm's clang instead of VS tools that I used for building clang in the first place.