Support ANSI escape code on Windows
authorNico Rieck <nico.rieck@gmail.com>
Wed, 11 Sep 2013 00:36:48 +0000 (00:36 +0000)
committerNico Rieck <nico.rieck@gmail.com>
Wed, 11 Sep 2013 00:36:48 +0000 (00:36 +0000)
commit44a61bde15d456527156ee2080f0964344b939fe
treec62e30e826059e609c06769baf2982ca7ce8b757
parentf495a2679248bca1a426052b3a297326bb46e9db
Support ANSI escape code on Windows

In some cases (e.g. when a build system pipes stderr) the Windows console
API cannot be used to color output. For these, provide a way to switch to
ANSI escape codes. This is required for Clang's -fansi-escape-codes option.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@190460 91177308-0d34-0410-b5e6-96231b3b80d8
include/llvm/Support/Process.h
lib/Support/Process.cpp
lib/Support/Unix/Process.inc
lib/Support/Windows/Process.inc