about summary refs log tree commit diff
path: root/src/rustllvm/RustWrapper.cpp
diff options
context:
space:
mode:
authorKevin Ballard <kevin@sb.org>2014-05-19 14:37:52 -0700
committerKevin Ballard <kevin@sb.org>2014-05-19 18:45:36 -0700
commitb991bbe2d0f148d25d00a8c17bfa6304d1b1ae5a (patch)
tree0a75a4ffaab40116499c84fc285c0a7575cbcce1 /src/rustllvm/RustWrapper.cpp
parente8c579e01d026df002fe6522d6f9c123b3920dc8 (diff)
downloadrust-b991bbe2d0f148d25d00a8c17bfa6304d1b1ae5a.tar.gz
rust-b991bbe2d0f148d25d00a8c17bfa6304d1b1ae5a.zip
Reset the terminal color before the newline for diagnostics
When printing colored diagnostics, we need to reset the terminal before
emitting the newline, not after. Otherwise it gets line-buffered and the
color won't reset until the next line is printed or the compiler exits.

Normally this isn't a problem, but when running rustc in parallel with
other processes (e.g. `make -j4`) this can cause the color to leak
to other lines.
Diffstat (limited to 'src/rustllvm/RustWrapper.cpp')
0 files changed, 0 insertions, 0 deletions