[cfe-dev] Use MinGW ld.exe with Clang in Windows

fiveight fiveight at tom.com
Tue Aug 28 23:44:47 PDT 2012


>You should be able to achieve what
>you want by passing -triple=i386-pc-mingw32 to the driver. 

You meam I pass -triple=i386-pc-mingw32 to the Clang, and Clang will auto use ld.exe to link object files?
Or I must launch ld.exe manually?

Thanks!

	

======= 2012-08-29 14:22:51 您在来信中写道:=======

>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.
>
>On Wed, Aug 29, 2012 at 7:44 AM, fiveight <fiveight at tom.com> wrote:
>> Hi,All
>>
>>         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?
>>
>>         Thanks!
>>
>>         fiveight
>>         fiveight at tom.com
>>           2012-08-29
>>
>> _______________________________________________
>> cfe-dev mailing list
>> cfe-dev at cs.uiuc.edu
>> http://lists.cs.uiuc.edu/mailman/listinfo/cfe-dev

= = = = = = = = = = = = = = = = = = = =
			

        致
礼!
 
				 
        fiveight
        fiveight at tom.com
          2012-08-29





More information about the cfe-dev mailing list