[PATCH] [libcxx] Use pseudo-terminal in LIT tests so color output from compiler error messages is captured.
Eric Fiselier
eric at efcs.ca
Mon Oct 27 18:51:28 PDT 2014
>But what if Lit isn't running in a device capable of color output? Won't
>this add a bunch of ugly ASCII codes?
Wouldn't clang refrain from outputting color codes to begin with?
Do you know of any way to detect this?
>I think what tools like Ninja do is to also optionally strip the color
>codes in that case (
>https://github.com/martine/ninja/blob/master/src/util.cc#L384).
Not much you can do about that. At least the colored output makes it one step further.
Thanks for the input.
http://reviews.llvm.org/D6010
More information about the cfe-commits
mailing list