[ccache] preprocessing switches

Shentino shentino at gmail.com
Sat Jul 23 07:09:51 MDT 2011

Does ccache take macro switches into account when it preprocesses?

For example, -DRANDOM_MACRO 's side effect is purely to introduce said macro
during preprocessing but beyond that has no effect on actual compilation.

Yet I have a source file that doesn't define such a macro, and it doesn't
get cached.  However, the compiler generates the same object file with or
without it.

More information about the ccache mailing list