[cfe-dev] llvm + mingw

Vincent R. forumer at smartmobili.com
Tue Jan 5 08:54:06 PST 2010

On Tue, 5 Jan 2010 16:39:30 +0000, David Chisnall <theraven at sucs.org>
> On 5 Jan 2010, at 15:56, Vincent R. wrote:
>> Hi,
>> I would like to know if it would be possible to developp on Mac an
>> objective-C 2.0
>> program and targeting mingw.
>> IS it possible to tell clang to compile objective-C code and then do  
>> the
>> final link
>> with mingw ?
> There are several issues here.  Clang can generate LLVM IR for the GNU  
> runtime (if you are using Objective-C 2 then you will want libobjc2  
> from GNUstep svn), assuming that you have the headers available and  
> LLVM can emit assembly for mingw.  I don't think the Darwin assembler  
> can emit object code that is compatible with mingw, so you'll need to  
> install a different assembler.

You are talking about libobjc2 but I can see that apple is releasing an
Would it be possible to use it and would it be compatible ?

> Given that you're linking on mingw anyway, is there a reason why you  
> want to compile on OS X?  If the issue is XCode, then you should look  
> at GNUstep's pbxbuild tool, which runs on mingw and can build XCode  
> projects.

Actually I don't care where I am compiling, it could be on windows as long
as it works.

More information about the cfe-dev mailing list