]> git.ipfire.org Git - thirdparty/gcc.git/commit
diagnostics::output_spec: fix "color" in "text" output scheme
authorDavid Malcolm <dmalcolm@redhat.com>
Tue, 30 Sep 2025 21:23:32 +0000 (17:23 -0400)
committerDavid Malcolm <dmalcolm@redhat.com>
Tue, 30 Sep 2025 21:23:32 +0000 (17:23 -0400)
commit5b5dba90232bd31caa072c1e26fd8c11bfe0a5f0
treee2950fddd459b74177345c5ef8e75d57a170bfd2
parent01ae4b1bfee07b1f7593ee09a40cac1ec5210524
diagnostics::output_spec: fix "color" in "text" output scheme

The previous refactoring highlighted that we were ignoring the "color"
key within the "text" output scheme for diagnostics.

Fixed thusly.

gcc/ChangeLog:
* diagnostics/output-spec.cc (text_scheme_handler::make_sink): Use
the value of the "color" to determine if the sink's printer is
colorized.

Signed-off-by: David Malcolm <dmalcolm@redhat.com>
gcc/diagnostics/output-spec.cc