diff --git a/compiler-rt/lib/sanitizer_common/sanitizer_mac.cc b/compiler-rt/lib/sanitizer_common/sanitizer_mac.cc index 2d383707f3c0..356541d2390c 100644 --- a/compiler-rt/lib/sanitizer_common/sanitizer_mac.cc +++ b/compiler-rt/lib/sanitizer_common/sanitizer_mac.cc @@ -468,6 +468,7 @@ void LogMessageOnPrintf(const char *str) { } void LogFullErrorReport(const char *buffer) { +#ifndef SANITIZER_GO // Log with os_trace. This will make it into the crash log. #if SANITIZER_OS_TRACE if (GetMacosVersion() >= MACOS_VERSION_YOSEMITE) { @@ -489,7 +490,6 @@ 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 @@ -500,9 +500,9 @@ 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. +#endif } SignalContext::WriteFlag SignalContext::GetWriteFlag(void *context) {