Create a Mach-O object from Windows?

Hello,

I’m brand new to using Clang, and I wondered if it was possible to compile say an Objective-C file into a Mach-O object file from Windows. I would like to use my PC as a compile machine for DistCC, and have that be called from a Mac, since my PC is much more powerful than the mac. Thanks for any information

Hi Tim,

I haven't tried it personally (don't have a windows machine around at the moment), but there's no reason that shouldn't work. Something like "-target x86_64-apple-darwin" should do the trick.

-Jim

I'm brand new to using Clang, and I wondered if it was possible to compile say an Objective-C file into a Mach-O object file from Windows. I would like to use my PC as a compile machine for DistCC, and have that be called from a Mac, since my PC is much more powerful than the mac.

Look into the way the Lilypond music score engraver is built:

  http://www.lilypond.org/doc/v2.15/Documentation/contributor/index

Unfortunately I couldn't find the page you actually need to read.
They seem to have revised their build system from what they used when
I was writing down my piano scores. They called it the "GRand Unified
Build System", and it would generate binaries for a whole bunch of
different platforms on a Linux box, or perhaps a cluster of Linux
boxen.

My understanding though is that it was very difficult for newbies to
get the Lilypond GRUB to actually work.

in general CLang and LLVM should work fine for cross-compiling.
That's what one does when building iOS Apps on Mac OS X for example.

Thanks for any information

Yer Welcome.