protobuf: fix build on mips64 by skipping tail call optimization.

from jj
This commit is contained in:
tb 2023-01-27 19:07:54 +00:00
parent 9534ca3d75
commit bd6d9e7914
1 changed files with 12 additions and 0 deletions

View File

@ -0,0 +1,12 @@
Index: src/google/protobuf/port_def.inc
--- src/google/protobuf/port_def.inc.orig
+++ src/google/protobuf/port_def.inc
@@ -254,7 +254,7 @@
#ifdef PROTOBUF_TAILCALL
#error PROTOBUF_TAILCALL was previously defined
#endif
-#if __has_cpp_attribute(clang::musttail) && !defined(__arm__) && \
+#if __has_cpp_attribute(clang::musttail) && !defined(__arm__) && !defined(__mips64__) && \
!defined(_ARCH_PPC) && !defined(__wasm__) && \
!(defined(_MSC_VER) && defined(_M_IX86)) && \
!(defined(__NDK_MAJOR__) && __NDK_MAJOR <= 24)