[LLVMdev] FileCheck + Ninja coloured output

Sean Silva silvas at purdue.edu
Sun Jan 6 00:18:28 PST 2013

Nope. An easy solution (both here and for clang) is for ninja to set
an environment variable (`NINJA_ISATTY`?), and add some magic to
LLVM's "isatty" to return true if it sees it.

(for matters of correctness, it would actually be best if ninja sets
the environment variable only when *it's* stdout/stderr isatty (also
taking into account this environment variable), so that everything
works "as expected" if you pipe ninja itself to a file or recursively
invoke ninja for some reason)

-- Sean Silva

On Sun, Jan 6, 2013 at 1:16 AM, David Blaikie <dblaikie at gmail.com> wrote:
> I'm just wondering if anyone's using Ninja (which buffers output from
> subcommands, such as lit/FileCheck/etc) & has thought about/found a
> way to force FileCheck to use colour in spite of Ninja's buffering.
> Thanks,
> - David
> _______________________________________________
> LLVM Developers mailing list
> LLVMdev at cs.uiuc.edu         http://llvm.cs.uiuc.edu
> http://lists.cs.uiuc.edu/mailman/listinfo/llvmdev

More information about the llvm-dev mailing list