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>
sink->set_show_nesting (opts.m_show_nesting);
sink->set_show_locations_in_nesting (opts.m_show_locations_in_nesting);
sink->set_show_nesting_levels (opts.m_show_levels);
- // FIXME: what about show_color?
+ pp_show_color (sink->get_printer ()) = opts.m_show_color;
return sink;
}