This is the mail archive of the
gcc-help@gcc.gnu.org
mailing list for the GCC project.
Re: Precompiled headers issue: -c and -fpch-preprocess should be used together?
- From: Pavel Shevaev <pacha dot shevaev at gmail dot com>
- To: Ian Lance Taylor <iant at google dot com>
- Cc: gcc-help at gcc dot gnu dot org
- Date: Fri, 16 Apr 2010 20:18:22 +0400
- Subject: Re: Precompiled headers issue: -c and -fpch-preprocess should be used together?
- References: <d9c3f61a1003280029w248628b8te06fb8ee17a9fc73@mail.gmail.com> <mcrk4sjgwj5.fsf@dhcp-172-17-9-151.mtv.corp.google.com>
> It is very likely that you are using ccache or distcc.
You are absolutely correct, I'm using both ccache and distcc.
> Those tools
> first preprocess the C source code and then compile it. ?It's true
> that if you are preprocessing, you need to use the -fpch-preprocess
> option. ?However, -fpch-preprocess is not required if you do not
> preprocess, and omitting it should work fine when using gcc proper
> rathre than ccache or distcc.
Thanks for the explanation! I just wonder why not putting this info on
the pch help page somewhere?
--
Best regards, Pavel