This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
Re: PCH not being used, but I can't tell why
- From: Geoff Keating <geoffk at geoffk dot org>
- To: Phil Edwards <phil at jaj dot com>
- Cc: gcc at gcc dot gnu dot org
- Date: 11 Aug 2003 10:46:18 -0700
- Subject: Re: PCH not being used, but I can't tell why
- References: <20030811062224.GA22399@disaster.jaj.com>
Phil Edwards <phil@jaj.com> writes:
> The libstdc++ testsuite builds a couple of PCH files in a directory, then
> using the "-include <dir>" method as per the PCH instructions in the manual,
> where it will use the first file that's valid.
>
> Except that if it can't find a valid file, I can't get it to tell me that,
> even when -Winvalid-pch is passed. It always uses the base header, never
> the precompiled one.
>
> How do I tell what's preventing PCH from being used?
If -Winvalid-pch isn't printing anything, that means that GCC never
found the PCH file, valid or not. Most likely, this is because your
directory is not named right. What is the directory called? What
does '-H' output?
--
- Geoffrey Keating <geoffk@geoffk.org>