summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorDmitry Vyukov <dvyukov@google.com>2016-04-27 13:40:05 +0000
committerDmitry Vyukov <dvyukov@google.com>2016-04-27 13:40:05 +0000
commitbcf9970cb4abd1bbb7b254594c535c3e3b0116a1 (patch)
tree1e760be9185f5be701f95c6e695f8d0fc308b1f3 /lib
parent2a2a42afe54b96e36fd85627960b4ca7339e8d5b (diff)
tsan: fix darwin Go build
syslog_lock is not defined in Go build. git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@267714 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib')
-rw-r--r--lib/sanitizer_common/sanitizer_mac.cc2
1 files changed, 2 insertions, 0 deletions
diff --git a/lib/sanitizer_common/sanitizer_mac.cc b/lib/sanitizer_common/sanitizer_mac.cc
index 5036dd2a9..2d383707f 100644
--- a/lib/sanitizer_common/sanitizer_mac.cc
+++ b/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.
}