-
Notifications
You must be signed in to change notification settings - Fork 13k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add compiler flag to configure output coloring
This adds the flag --color, which allows the user to force coloring or turn it off. The default behavior stays the same as before (colorize, if output goes to tty). Why this is beneficial is explained in issue #12881. Please note that this commit doesn't include any regression tests. I thought about how I'd write a test for this and it doesn't seem to be worth the effort to me for a UI change like this. Fixes #12881.
- Loading branch information
1 parent
579e0a5
commit b7676f2
Showing
7 changed files
with
46 additions
and
12 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
b7676f2
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
saw approval from alexcrichton
at https://github.com/hannobraun/rust/commit/b7676f2df5e1ff97e0baa3f7e70936d4bd4dacb5
b7676f2
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
merging hannobraun/rust/force-color-output = b7676f2 into auto
b7676f2
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
hannobraun/rust/force-color-output = b7676f2 merged ok, testing candidate = 182c96c
b7676f2
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
all tests pass:
success: http://buildbot.rust-lang.org/builders/auto-mac-32-opt/builds/5796
success: http://buildbot.rust-lang.org/builders/auto-mac-64-opt/builds/5794
success: http://buildbot.rust-lang.org/builders/auto-mac-64-nopt-c/builds/4889
success: http://buildbot.rust-lang.org/builders/auto-mac-64-nopt-t/builds/4898
success: http://buildbot.rust-lang.org/builders/auto-linux-32-opt/builds/5893
success: http://buildbot.rust-lang.org/builders/auto-linux-32-nopt-c/builds/4982
success: http://buildbot.rust-lang.org/builders/auto-linux-32-nopt-t/builds/4990
success: http://buildbot.rust-lang.org/builders/auto-linux-64-opt/builds/5896
success: http://buildbot.rust-lang.org/builders/auto-linux-64-nopt-c/builds/4981
success: http://buildbot.rust-lang.org/builders/auto-linux-64-nopt-t/builds/4987
success: http://buildbot.rust-lang.org/builders/auto-linux-64-x-android/builds/5049
success: http://buildbot.rust-lang.org/builders/auto-linux-64-x-android-t/builds/2782
success: http://buildbot.rust-lang.org/builders/auto-win-32-opt/builds/5889
success: http://buildbot.rust-lang.org/builders/auto-win-32-nopt-c/builds/4985
success: http://buildbot.rust-lang.org/builders/auto-win-32-nopt-t/builds/5000
b7676f2
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
fast-forwarding master to auto = 182c96c