[compiler-rt] r267714 - tsan: fix darwin Go build

Dmitry Vyukov via llvm-commits llvm-commits at lists.llvm.org
Wed Apr 27 06:40:05 PDT 2016


Author: dvyukov
Date: Wed Apr 27 08:40:05 2016
New Revision: 267714

URL: http://llvm.org/viewvc/llvm-project?rev=267714&view=rev
Log:
tsan: fix darwin Go build

syslog_lock is not defined in Go build.


Modified:
    compiler-rt/trunk/lib/sanitizer_common/sanitizer_mac.cc

Modified: compiler-rt/trunk/lib/sanitizer_common/sanitizer_mac.cc
URL: http://llvm.org/viewvc/llvm-project/compiler-rt/trunk/lib/sanitizer_common/sanitizer_mac.cc?rev=267714&r1=267713&r2=267714&view=diff
==============================================================================
--- compiler-rt/trunk/lib/sanitizer_common/sanitizer_mac.cc (original)
+++ compiler-rt/trunk/lib/sanitizer_common/sanitizer_mac.cc Wed Apr 27 08:40:05 2016
@@ -489,6 +489,7 @@ void LogFullErrorReport(const char *buff
   }
 #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 *buff
   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.
 }




More information about the llvm-commits mailing list