[cfe-dev] macro '__OPTIMIZE__' and PCH

Luc Bourhis luc_j_bourhis at mac.com
Thu Nov 4 04:58:26 PDT 2010


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




More information about the cfe-dev mailing list