Skip to content

Provide force coloring option for rustc #12881

Closed
@bollu

Description

@bollu

I often use tup / ninja as build systems which pipe input into an internal buffer and only later send it to stdout,

Rustc disables coloring when it's piped into any other source. Hence, I lose all coloring when using rust with tup.

Clang has the same behaviour by default, but provides a compiler flag -f-color-diagnostics which forces colored output to be emitted. This would be really useful to have in rustc. It makes debugging and in general compiling far more pleasant.

Thanks!

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions