File tree 1 file changed +8
-3
lines changed
src/tools/compiletest/src
1 file changed +8
-3
lines changed Original file line number Diff line number Diff line change @@ -4014,12 +4014,17 @@ impl<'test> TestCx<'test> {
4014
4014
explicit_format : bool ,
4015
4015
) -> usize {
4016
4016
let stderr_bits = format ! ( "{}bit.stderr" , self . config. get_pointer_width( ) ) ;
4017
- let force_color_svg = self . props . compile_flags . iter ( ) . any ( |s| s. contains ( "--color" ) )
4018
- && !self . config . target . contains ( "windows" ) ;
4017
+ let force_color_svg = self . props . compile_flags . iter ( ) . any ( |s| s. contains ( "--color" ) ) ;
4019
4018
let ( stderr_kind, stdout_kind) = match output_kind {
4020
4019
TestOutput :: Compile => (
4021
4020
if force_color_svg {
4022
- UI_SVG
4021
+ if self . config . target . contains ( "windows" ) {
4022
+ // We single out Windows here because some of the CLI coloring is
4023
+ // specifically changed for Windows.
4024
+ "windows.svg"
4025
+ } else {
4026
+ UI_SVG
4027
+ }
4023
4028
} else if self . props . stderr_per_bitwidth {
4024
4029
& stderr_bits
4025
4030
} else {
You can’t perform that action at this time.
0 commit comments