Re: Precompiled headers and universal binaries
Re: Precompiled headers and universal binaries
- Subject: Re: Precompiled headers and universal binaries
- From: Chris Espinosa <email@hidden>
- Date: Thu, 6 Jul 2006 08:38:52 -0700
On Jul 5, 2006, at 10:07 PM, Martin Storsjö wrote:
Hi,
Is precompiled headers supported when building universal binaries
from the commandline for both architectures at the same time?
I've used to build precompiled headers using a command like this:
cc -c -x objective-c++-header file.h -o file.h.gch
While building universal binaries, I've added -arch ppc -arch i386
to the CFLAGS, but this gives me an error:
lipo: can't figure out the architecture type of: /var/tmp//
ccM1wnO4.out
Is this scenario supported at all, or am I forced to compile the
architectures separately (as xcode does) and merge them manually
afterwards?
The precompiled headers have to be built per-architecture, which
means that sources that use precompiled headers have to be built per-
architecture and lipo'd together.
Chris _______________________________________________
Do not post admin requests to the list. They will be ignored.
Xcode-users mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden