summaryrefslogtreecommitdiff
path: root/lib/asan/asan_report.cc
diff options
context:
space:
mode:
authorTimur Iskhodzhanov <timurrrr@google.com>2013-08-16 11:26:26 +0000
committerTimur Iskhodzhanov <timurrrr@google.com>2013-08-16 11:26:26 +0000
commit13f5be4dd1d8bf6a44d8d976325f1c6f26fa9f7f (patch)
treec9cf6a59b7cb116b86ebe105d3e920383ee2f189 /lib/asan/asan_report.cc
parent9d95475f8adb1e08e45484feb03570ae2be2d0f3 (diff)
downloadcompiler-rt-13f5be4dd1d8bf6a44d8d976325f1c6f26fa9f7f.tar.gz
compiler-rt-13f5be4dd1d8bf6a44d8d976325f1c6f26fa9f7f.tar.bz2
compiler-rt-13f5be4dd1d8bf6a44d8d976325f1c6f26fa9f7f.tar.xz
[ASan/RTL] Disable colored reporting on Windows
git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@188545 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/asan/asan_report.cc')
-rw-r--r--lib/asan/asan_report.cc5
1 files changed, 5 insertions, 0 deletions
diff --git a/lib/asan/asan_report.cc b/lib/asan/asan_report.cc
index f5c67f1b..d6d7d9c5 100644
--- a/lib/asan/asan_report.cc
+++ b/lib/asan/asan_report.cc
@@ -45,6 +45,11 @@ void AppendToErrorMessageBuffer(const char *buffer) {
// ---------------------- Decorator ------------------------------ {{{1
bool PrintsToTtyCached() {
+ // FIXME: Add proper Windows support to AnsiColorDecorator and re-enable color
+ // printing on Windows.
+ if (SANITIZER_WINDOWS)
+ return 0;
+
static int cached = 0;
static bool prints_to_tty;
if (!cached) { // Ok wrt threads since we are printing only from one thread.