From 51c294a9e8b109fa5b0f92516da29f327120d48c Mon Sep 17 00:00:00 2001 From: Dmitry Vyukov Date: Wed, 27 Apr 2016 13:40:05 +0000 Subject: [PATCH] tsan: fix darwin Go build syslog_lock is not defined in Go build. llvm-svn: 267714 --- compiler-rt/lib/sanitizer_common/sanitizer_mac.cc | 2 ++ 1 file changed, 2 insertions(+) diff --git a/compiler-rt/lib/sanitizer_common/sanitizer_mac.cc b/compiler-rt/lib/sanitizer_common/sanitizer_mac.cc index 5036dd2..2d38370 100644 --- a/compiler-rt/lib/sanitizer_common/sanitizer_mac.cc +++ b/compiler-rt/lib/sanitizer_common/sanitizer_mac.cc @@ -489,6 +489,7 @@ void LogFullErrorReport(const char *buffer) { } #endif +#ifndef SANITIZER_GO // Log to syslog. // The logging on OS X may call pthread_create so we need the threading // environment to be fully initialized. Also, this should never be called when @@ -499,6 +500,7 @@ void LogFullErrorReport(const char *buffer) { BlockingMutexLock l(&syslog_lock); if (common_flags()->log_to_syslog) WriteToSyslog(buffer); +#endif // The report is added to CrashLog as part of logging all of Printf output. } -- 2.7.4