diff options
| author | Dmitry Vyukov <dvyukov@google.com> | 2016-04-27 13:40:05 +0000 |
|---|---|---|
| committer | Dmitry Vyukov <dvyukov@google.com> | 2016-04-27 13:40:05 +0000 |
| commit | 51c294a9e8b109fa5b0f92516da29f327120d48c (patch) | |
| tree | 99a28f78e4e2a65b7b2982fedd86b404b8859b9a | |
| parent | 3e0315c0448d68f8b75a8cbfe1f72bc32431c38d (diff) | |
| download | bcm5719-llvm-51c294a9e8b109fa5b0f92516da29f327120d48c.tar.gz bcm5719-llvm-51c294a9e8b109fa5b0f92516da29f327120d48c.zip | |
tsan: fix darwin Go build
syslog_lock is not defined in Go build.
llvm-svn: 267714
| -rw-r--r-- | compiler-rt/lib/sanitizer_common/sanitizer_mac.cc | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/compiler-rt/lib/sanitizer_common/sanitizer_mac.cc b/compiler-rt/lib/sanitizer_common/sanitizer_mac.cc index 5036dd2a95a..2d383707f3c 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. } |

