• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: Precompiled headers and universal binaries
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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


  • Follow-Ups:
    • Re: Precompiled headers and universal binaries
      • From: Martin Storsjö <email@hidden>
References: 
 >Precompiled headers and universal binaries (From: Martin Storsjö <email@hidden>)

  • Prev by Date: Precompiled headers and universal binaries
  • Next by Date: [ANN] Xcode + Leopard at WWDC this year
  • Previous by thread: Precompiled headers and universal binaries
  • Next by thread: Re: Precompiled headers and universal binaries
  • Index(es):
    • Date
    • Thread