Use MinGW ld.exe with Clang in Windows


  I build Clang with VS2008, and I don't want to use Microsoft Link.exe.

  Can I use ld.exe (I get it from MinGW) as the linker instead?

  And which object file format should I use between Clang and ld.exe?



Clang compiled with VS acts as a "native" Windows toolchain (uses MS
headers, object format, link.exe). You should be able to achieve what
you want by passing -triple=i386-pc-mingw32 to the driver. This will
effectively activate the mingw toolchain and you won't need to worry
about the object file format.

Why don’t you build clang on mingw?

2012/08/29 14:47 “fiveight” <>: