about summary refs log tree commit diff
path: root/src/rustllvm/RustWrapper.cpp
diff options
context:
space:
mode:
authorBarosl Lee <vcs@barosl.com>2015-08-22 23:51:53 +0900
committerBarosl Lee <vcs@barosl.com>2015-08-25 18:08:57 +0900
commit71f39c1a2fd98f829a6087a7f4a47a857571493c (patch)
tree899699e1f508a0ebb65a15772b91fcd954c4f057 /src/rustllvm/RustWrapper.cpp
parente195aa84b482e01b6eadf14211e4d880063a6794 (diff)
downloadrust-71f39c1a2fd98f829a6087a7f4a47a857571493c.tar.gz
rust-71f39c1a2fd98f829a6087a7f4a47a857571493c.zip
Respect `--color` when printing early errors
Currently, `early_error` and `early_warn` in `librustc::session` always
use `ColorConfig::Auto`. Modify them to follow the color configuration
set by the `--color` option.

As colored output is also printed during the early stage, parsing the
`--color` option should be done as early as possible. However, there are
still some cases when the output needs to be colored before knowing the
exact color settings. In these cases, it will be defaulted to
`ColorConfig::Auto`, which is the same as before.

Fixes #27879.
Diffstat (limited to 'src/rustllvm/RustWrapper.cpp')
0 files changed, 0 insertions, 0 deletions