Join GitHub today
GitHub is home to over 31 million developers working together to host and review code, manage projects, and build software together.Sign up
cmake: improved build speed by 5x when using ccache #15147
when building with ccache we were not taking advantage of "direct mode" (see https://ccache.samba.org/manual.html#_the_direct_mode) due to the unnecessary "-Wp" cflags. I removed that "-Wp" cflags and now see about a 5x (!) improvement in build speed when using ccache.
and ccache stats show that we're using direct mode:
and before this change:
and ccache stats show (mostly) preprocessed mode: