[cfe-dev] PTH questions
Mike Stump
mrs at apple.com
Sat Apr 4 09:53:59 PDT 2009
On Apr 4, 2009, at 2:04 AM, Robert Purves wrote:
> 1. What does 'T' in PTH stand for? Tokenized, toasted...?
Tokenized.
> 2. The command clang test.h produces the expected file test.h.gch.
> Is this file recognised and used automatically in subsequent
> compilations containing #include "test.h" (as gcc does),
The design of gcc is to have that work. I don't think clang does that
yet, but in time it may.
> or is it necessary to add the option -include-pth=test.h.gch?
My take, please don't do that. -include test.h is the correct spelling.
> 3. -include-pth hates to have the '=' omitted:
> $ clang -c test.c -o test.o -include-pth=test.h.gch
> $ clang -c test.c -o test.o -include-pth test.h.gch
> clang: warning: test.h.gch: 'linker' input file unused when '-c' is
> present
> error: PTH file -o could not be read
>
> Is this inscrutable error a bug
Yes, my take, there should not be an -include-pth option to clang.
More information about the cfe-dev
mailing list