[compiler-rt] r355244 - [sanitizers] Fix build on macOS with LogFullErrorReport redefinition error.
Volodymyr Sapsai via llvm-commits
llvm-commits at lists.llvm.org
Fri Mar 1 16:05:04 PST 2019
Author: vsapsai
Date: Fri Mar 1 16:05:04 2019
New Revision: 355244
URL: http://llvm.org/viewvc/llvm-project?rev=355244&view=rev
Log:
[sanitizers] Fix build on macOS with LogFullErrorReport redefinition error.
macOS has implementation of LogFullErrorReport and
INLINE void LogFullErrorReport(const char *buffer) {}
was causing
> compiler-rt/lib/sanitizer_common/sanitizer_mac.cc:658:6: error: redefinition of 'LogFullErrorReport'
Fixup for r355236.
rdar://problem/48526020
Modified:
compiler-rt/trunk/lib/sanitizer_common/sanitizer_common.h
Modified: compiler-rt/trunk/lib/sanitizer_common/sanitizer_common.h
URL: http://llvm.org/viewvc/llvm-project/compiler-rt/trunk/lib/sanitizer_common/sanitizer_common.h?rev=355244&r1=355243&r2=355244&view=diff
==============================================================================
--- compiler-rt/trunk/lib/sanitizer_common/sanitizer_common.h (original)
+++ compiler-rt/trunk/lib/sanitizer_common/sanitizer_common.h Fri Mar 1 16:05:04 2019
@@ -810,7 +810,7 @@ void WriteToSyslog(const char *buffer);
#define SANITIZER_WIN_TRACE 0
#endif
-#if SANITIZER_LINUX || SANITIZER_WIN_TRACE
+#if SANITIZER_MAC || SANITIZER_WIN_TRACE
void LogFullErrorReport(const char *buffer);
#else
INLINE void LogFullErrorReport(const char *buffer) {}
More information about the llvm-commits
mailing list