Fix tsan-go build.
authorEvgeniy Stepanov <eugeni.stepanov@gmail.com>
Thu, 8 Sep 2016 19:16:01 +0000 (19:16 +0000)
committerEvgeniy Stepanov <eugeni.stepanov@gmail.com>
Thu, 8 Sep 2016 19:16:01 +0000 (19:16 +0000)
Disable the new abort-in-SIGABRT code under SANITIZER_GO.

llvm-svn: 280980

compiler-rt/lib/sanitizer_common/sanitizer_posix_libcdep.cc

index 773de69..1a3e960 100644 (file)
@@ -128,6 +128,7 @@ void SleepForMillis(int millis) {
 }
 
 void Abort() {
+#ifndef SANITIZER_GO
   // If we are handling SIGABRT, unhandle it first.
   if (IsHandledDeadlySignal(SIGABRT)) {
     struct sigaction sigact;
@@ -135,6 +136,7 @@ void Abort() {
     sigact.sa_sigaction = (sa_sigaction_t)SIG_DFL;
     internal_sigaction(SIGABRT, &sigact, nullptr);
   }
+#endif
 
   abort();
 }