]> git.ipfire.org Git - thirdparty/ccache.git/commit
Support -fcolor-diagnostics passed to cc1 with -Xclang (#802)
authorEvangelos Foutras <evangelos@foutrelis.com>
Tue, 23 Feb 2021 19:41:15 +0000 (21:41 +0200)
committerGitHub <noreply@github.com>
Tue, 23 Feb 2021 19:41:15 +0000 (20:41 +0100)
commite3ecec59b8d76096edf15842a2677af2767f3851
tree9c349b0b6401eba18a7ed1919e3c2e60d4c0d6eb
parentd16313440cf2a360f3daea9d7cccf7fb0ed17dee
Support -fcolor-diagnostics passed to cc1 with -Xclang (#802)

Before this change `clang++ -Xclang -fcolor-diagnostics -c foo.cc`
would result in diagnostics without color if stderr was not a TTY.

Fixes #801.
src/argprocessing.cpp
test/suites/color_diagnostics.bash
unittest/test_argprocessing.cpp