Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Only reject -f(no-)color-diagnostics for known GCC compiler
61ce8c4 made it so that ccache rejects -f(no-)color-diagnostics early for non-Clang compilers. This was needed to avoid false cache hits for the GCC case, but it had the side effect of rejecting -fcolor-diagnostics for unknown compilers as well, such as for a compiler named c++ that in reality is clang++ (which actually accepts -f(no-)color-diagnostics). Fix this by simply doing the special case for GCC instead of non-Clang. This is OK since the speculative handling of color diagnostics options is only done for GCC and Clang, not for other compiler types. Fixes #806.
- Loading branch information
Showing
2 changed files
with
21 additions
and
5 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters