Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Closed
bennofs opened this issue Jul 14, 2016 · 4 comments
Closed

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

bennofs opened this issue Jul 14, 2016 · 4 comments

Comments

@bennofs
Copy link
Contributor

bennofs commented Jul 14, 2016

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.

@alexcrichton
Copy link
Member

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

@bennofs
Copy link
Contributor Author

bennofs commented Jul 14, 2016

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

Let me check

@bennofs
Copy link
Contributor Author

bennofs commented Jul 14, 2016

Indeed, it works with master.

@bennofs bennofs closed this as completed Jul 14, 2016
@alexcrichton
Copy link
Member

Yay!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants