protobuf: fix build on mips64 by skipping tail call optimization.
from jj
This commit is contained in:
parent
9534ca3d75
commit
bd6d9e7914
|
@ -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)
|
Loading…
Reference in New Issue