MINGW-packages/mingw-w64-protobuf/0004-fix-build-with-gcc-15.patch
مهدي شينون (Mehdi Chinoune) 4215b0f32f protobuf: Fix build with gcc-15
2025-05-23 06:46:06 +01:00

11 lines
484 B
Diff

--- a/src/google/protobuf/port_def.inc
+++ b/src/google/protobuf/port_def.inc
@@ -222,6 +222,7 @@
#error PROTOBUF_TAILCALL was previously defined
#endif
#if ABSL_HAVE_CPP_ATTRIBUTE(clang::musttail) && !defined(__arm__) && \
+ !(defined(__GNUC__) && __GNUC__ >= 15 ) && \
!defined(_ARCH_PPC) && !defined(__wasm__) && \
!(defined(_MSC_VER) && defined(_M_IX86)) && !defined(__i386__)
// Compilation fails on ARM32: b/195943306