Re: Precompiled headers and universal binaries
Re: Precompiled headers and universal binaries
- Subject: Re: Precompiled headers and universal binaries
- From: Martin Storsjö <email@hidden>
- Date: Mon, 10 Jul 2006 22:23:31 +0300 (EEST)
On Thu, 6 Jul 2006, Martin Storsjö wrote:
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
I found an undocumented (as far as I know) solution by browsing the gcc
source.
I made it work by creating a directory named file.h.gch, and precompiling
the header separately for each architecture into a separate file in this
directory (what they are named doesn't matter). This way, gcc scans this
directory and uses the first file which seems to work for the current
compilation.
// Martin
_______________________________________________
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