summaryrefslogtreecommitdiffstats
path: root/clang/test/Driver/color-diagnostics.c
diff options
context:
space:
mode:
authorNico Rieck <nico.rieck@gmail.com>2013-09-11 00:38:02 +0000
committerNico Rieck <nico.rieck@gmail.com>2013-09-11 00:38:02 +0000
commit7857d46c640b6e631e1219eeb7b77afd832fce4d (patch)
treee4bcc8e5c4eb487a1bd4aff06454e5da40de5ebe /clang/test/Driver/color-diagnostics.c
parent4f0409aae53dd04bbbc2ec00e75f62a16e3a3bdf (diff)
downloadbcm5719-llvm-7857d46c640b6e631e1219eeb7b77afd832fce4d.tar.gz
bcm5719-llvm-7857d46c640b6e631e1219eeb7b77afd832fce4d.zip
Add -fansi-escape-codes option
Some build systems use pipes for stdin/stderr. On nix-ish platforms colored output can be forced by -fcolor-diagnostics. On Windows this option has no effect in these cases because LLVM uses the console API (which only operates on the console buffer) even if a console wrapper capable of interpreting ANSI escape codes is used. The -fansi-escape-codes option allows switching from the console API to ANSI escape codes. It has no effect on other platforms. llvm-svn: 190464
Diffstat (limited to 'clang/test/Driver/color-diagnostics.c')
-rw-r--r--clang/test/Driver/color-diagnostics.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/clang/test/Driver/color-diagnostics.c b/clang/test/Driver/color-diagnostics.c
index af869af86c1..ebf614eeb1a 100644
--- a/clang/test/Driver/color-diagnostics.c
+++ b/clang/test/Driver/color-diagnostics.c
@@ -51,3 +51,7 @@
// RUN: %clang -fcolor-diagnostics -fdiagnostics-color=auto -### -c %s 2>&1 \
// RUN: | FileCheck --check-prefix=CHECK-CD_DCE_AUTO_S %s
// CHECK-CD_DCE_AUTO_S-NOT: clang{{.*}}" "-fcolor-diagnostics"
+
+// RUN: %clang -fansi-escape-codes -### -c %s 2>&1 \
+// RUN: | FileCheck --check-prefix=CHECK-AEC %s
+// CHECK-AEC: clang{{.*}}" "-fansi-escape-codes"
OpenPOWER on IntegriCloud