[Mono-dev] Mono SVN doesn't build on Mac OSX Snow Leopard
Miguel de Icaza
miguel at novell.com
Wed Sep 9 12:36:22 EDT 2009
> The primary reason seems to be that the default version of gcc on Snow
> Leopard, 4.2.1, no longer defines __i386__. gcc 4.2.1 defines __x86_64__.
In general, and moving forward, we should stop using the GCC
__platform__ macros, and instead use TARGET_XXXX defines.
This is becoming more important as Mono is used more and more as a cross
compiler. When Mono is used as a cross compiler the __platform__
merely indicates the host system, but does not cope with the target
system, which ends up breaking a lot of things.
For instance, consider Mono running on Intel, generating code for ARM
(the iPhone case) or Mono running on Intel, generating code for PowerPC
More information about the Mono-devel-list