From 3aa6cd176ecf83690e9d2ba493f9a71c9f3e46d4 Mon Sep 17 00:00:00 2001 From: klzgrad Date: Thu, 1 Sep 2022 21:32:55 +0800 Subject: [PATCH] third_party/protobuf: Disable musttail on MIPS clang reports: fatal error: error in backend: failed to perform tail call elimination on a call site marked musttail --- src/third_party/protobuf/src/google/protobuf/port_def.inc | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/third_party/protobuf/src/google/protobuf/port_def.inc b/src/third_party/protobuf/src/google/protobuf/port_def.inc index f1c46c2a1b..1d3629d895 100644 --- a/src/third_party/protobuf/src/google/protobuf/port_def.inc +++ b/src/third_party/protobuf/src/google/protobuf/port_def.inc @@ -257,12 +257,12 @@ #if __has_cpp_attribute(clang::musttail) && !defined(__arm__) && \ !defined(_ARCH_PPC) && !defined(__wasm__) && \ !(defined(_MSC_VER) && defined(_M_IX86)) && \ - !(defined(__NDK_MAJOR__) && __NDK_MAJOR__ <= 24) + !(defined(__NDK_MAJOR__) && __NDK_MAJOR__ <= 24) && !defined(__mips__) # ifndef PROTO2_OPENSOURCE // Compilation fails on ARM32: b/195943306 // Compilation fails on powerpc64le: b/187985113 // Compilation fails on X86 Windows: -// https://github.com/llvm/llvm-project/issues/53271 +// 1 # endif #define PROTOBUF_MUSTTAIL [[clang::musttail]] #define PROTOBUF_TAILCALL true