[cfe-dev] llvm + mingw

David Chisnall theraven at sucs.org
Tue Jan 5 10:39:30 CST 2010


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.

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.

David

-- Sent from my PDP-11



More information about the cfe-dev mailing list