Hi,
if I build a pch with let's say -O3 and then later use it for a compilation without any -O option, then clang stops with the error
error: the macro '__OPTIMIZE__' was defined in the PCH file but is currently undefined
I thought that clang pch were, contrary to gcc's ones, only pre-tokenised headers. I must be wrong obviously. Could somebody elaborate on this issue?
Luc Bourhis
Clang has pretokenized headers (PTH), but nowadays it also has precompiled headers.
Sebastian
Clang has pretokenized headers (PTH), but nowadays it also has precompiled headers.
My misunderstanding then. Could you point me to the user's documentation for PTH then? Unless I missed something, the user's manual discusses only PCH (http://clang.llvm.org/docs/UsersManual.html#precompiledheaders).
Thanks,
Luc