Skip to content

'cargo build --color always' should enable colors for rustc too #2877

Closed

Description

@bennofs

Currently, if you run cargo --color always build, it'll only enable colors for the output of cargo itself, but not for any errors produced by rustc. To get colors from both cargo build and rustc, you have to use the following complex command:

$ cargo rustc --color always -- --color always 2>&1

I think cargo should forward the --color argument to rustc.

Activity

  1. alexcrichton commented on Jul 14, 2016

    @alexcrichton
    Member

    Indeed! That should be done here though, maybe an older version of Cargo is being used?

  2. bennofs commented on Jul 14, 2016

    @bennofs
    ContributorAuthor

    Oh yes, I think you're right. I'm using 0.10, and that change is only in 0.12

    Let me check

  3. bennofs commented on Jul 14, 2016

    @bennofs
    ContributorAuthor

    Indeed, it works with master.

  4. alexcrichton commented on Jul 14, 2016

    @alexcrichton
    Member

    Yay!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

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