• 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: sharing precompiled headers
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: sharing precompiled headers


  • Subject: Re: sharing precompiled headers
  • From: Chris Espinosa <email@hidden>
  • Date: Tue, 7 Feb 2006 19:38:26 -0800


On Feb 7, 2006, at 2:55 PM, Jamie Zawinski wrote:

I've got a project with multiple targets, and I'd like them to all share the same precompiled header.  Right now, XCode 2.2 seems to be compiling the header once for each target.


The targets all have different -D settings in "Preprocessor Macros", so maybe that's why XCode thinks they each need a different pch?  These defines are not ones that affect the headers, though, so it would be valid to share.  Is there some way to tell it "share anyway"?


I've got what I think are all the default settings:


PRECOMPS_INCLUDE_HEADERS_FROM_BUILT_PRODUCTS_DIR=yes

CONFIGURATION_BUILD_DIR=$(BUILD_DIR)/$(CONFIGURATION)

SHARED_PRECOMPS_DIR=/Library/Caches/com.apple.Xcode.$(UID)/SharedPrecompiledHeaders


Check out the build setting ponderously, but helpfully, titled "Preprocessor Definitions Not Used In Precompiled Headers."

If you put all your Preprocessor Macro settings there, you'll eliminate the gratuitous differences among targets and share PCHs.

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

References: 
 >sharing precompiled headers (From: Jamie Zawinski <email@hidden>)

  • Prev by Date: Re: RTTI and exceptions between plugins (solution)
  • Next by Date: Re: errno in debug vs. release
  • Previous by thread: Re: sharing precompiled headers
  • Next by thread: RTTI and exceptions between plugins (solution)
  • Index(es):
    • Date
    • Thread