HomeFreeBSD

- Don't cache -fcolor-diagnostics.

Description

  • Don't cache -fcolor-diagnostics. Unlike gmake, which ccache is primarily targetted at, our make does not give a TTY to stderr. Thus make -j does not use -fcolor-diagnostics by default. If you run with make -j, then run make again ccache will add in -fcolor-diagnostics and find only cache misses. Skip processing of -fcolor-diagnostics (and gcc equivalents) to avoid this problem and fix cache hits when flip-flopping between TTY/colors. Fixing our make is possible but this change also allows the user to decide to add -fcolor-diagnostics and still use their existing uncolored cache.

Details

Provenance
bdreweryAuthored on
Parents
rP408672: Regenerate patches
Branches
Unknown
Tags
Unknown