tsan: fix darwin Go build

syslog_lock is not defined in Go build.

llvm-svn: 267714
This commit is contained in:
Dmitry Vyukov 2016-04-27 13:40:05 +00:00
parent 3e0315c044
commit 51c294a9e8
1 changed files with 2 additions and 0 deletions

View File

@ -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.
}