Bo Peng wrote:
And that is only thing I absolutely refuse. Not a single included
header file should ever be removed from any source because of some
pch.h.

Nothing will be more portable.

How about adding

#ifdef _USE_PCH
#include <pch.h>
#endif

I think that you could put that in the scons generated "common/config.h" and stay in peace with Lars and the LyX source code ;-)


and change --include=pch.h  to -D_USE_PCH?

Quite frankly I don't think the use of PCH is a panacea. I think it is just an excuse for badly written code. By using forward declaration (class foo) in header you reduce considerably the compile time already and I like to specify only the header I need in the .cpp file.

That said, if you could make the pch support transparent as implied above, that would be great :-)

Abdel.

Reply via email to