Disabling pch checking?

Mike Stump mrs@apple.com
Fri Feb 24 23:41:00 GMT 2006


On Feb 24, 2006, at 1:57 PM, Dan Kegel wrote:
> On 2/24/06, Mike Stump <mrs@apple.com> wrote:
>> On Feb 24, 2006, at 1:25 PM, Dan Kegel wrote:
>>> That's painful to set up, though (it requires changing the
>>> application's source to be effective, doesn't it?)
>>
>> No.

:-)  On darwin, we just have a UI element that adds a prefix.h to the  
project, and in it you put all the headers you want, and then the UI  
adds -include prefix.h to all the compiles.  No other changes to the  
project are otherwise necessary.

In the world of make, you can add -include prefix.h to the CFLAGS,  
and then create prefix.h as you'd like, and add it into the  
dependency graph for make, and add a rule to compile the header.   
When you said source I discounted the makefile type changes, though,  
I guess that does qualify as source, sorry if I misled you.

> 3) edit all your app's sources to include all instead of the  
> individual .h's

Nope, don't have to do this as most headers will disappear through  
the use of #ifndef FOO; #define FOO .... #endif.



More information about the Gcc mailing list