From daa58c8bfbcdfda7dfcfe1f334341d5212393377 Mon Sep 17 00:00:00 2001 From: Petr Hosek Date: Tue, 19 Sep 2017 17:00:22 +0000 Subject: [sanitizer] Don't define common ReportDeadlySignal on Fuchsia This causes a linker error because of duplicate symbol since ReportDeadlySignal is defined both in sanitizer_common_libcdep and sanitizer_fuchsia. Differential Revision: https://reviews.llvm.org/D37952 git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@313641 91177308-0d34-0410-b5e6-96231b3b80d8 --- lib/sanitizer_common/sanitizer_common_libcdep.cc | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/sanitizer_common/sanitizer_common_libcdep.cc b/lib/sanitizer_common/sanitizer_common_libcdep.cc index d96890ff5..69dd93d87 100644 --- a/lib/sanitizer_common/sanitizer_common_libcdep.cc +++ b/lib/sanitizer_common/sanitizer_common_libcdep.cc @@ -147,7 +147,7 @@ void BackgroundThread(void *arg) { } #endif -#if !SANITIZER_GO +#if !SANITIZER_FUCHSIA && !SANITIZER_GO void StartReportDeadlySignal() { // Write the first message using fd=2, just in case. // It may actually fail to write in case stderr is closed. @@ -254,7 +254,7 @@ void ReportDeadlySignal(const SignalContext &sig, u32 tid, else ReportDeadlySignalImpl(sig, tid, unwind, unwind_context); } -#endif // !SANITIZER_GO +#endif // !SANITIZER_FUCHSIA && !SANITIZER_GO void WriteToSyslog(const char *msg) { InternalScopedString msg_copy(kErrorMessageBufferSize); -- cgit v1.2.3