Re: sharing precompiled headers
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