Skip to content

Commit b40633f

Browse files
committed
Turn off clang::musttail on i386
We found last week that Clang's support for `musttail` on 32-bit Linux does not seem to work reliably, so let's disable it for now. PiperOrigin-RevId: 528817403
1 parent 28003bb commit b40633f

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/google/protobuf/port_def.inc

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -322,9 +322,9 @@ static_assert(PROTOBUF_CPLUSPLUS_MIN(201402L), "Protobuf only supports C++14 and
322322
#ifdef PROTOBUF_TAILCALL
323323
#error PROTOBUF_TAILCALL was previously defined
324324
#endif
325-
#if __has_cpp_attribute(clang::musttail) && !defined(__arm__) && \
326-
!defined(_ARCH_PPC) && !defined(__wasm__) && \
327-
!(defined(_MSC_VER) && defined(_M_IX86)) && \
325+
#if __has_cpp_attribute(clang::musttail) && !defined(__arm__) && \
326+
!defined(_ARCH_PPC) && !defined(__wasm__) && \
327+
!(defined(_MSC_VER) && defined(_M_IX86)) && !defined(__i386__) && \
328328
!(defined(__NDK_MAJOR__) && __NDK_MAJOR <= 24)
329329
# ifndef PROTO2_OPENSOURCE
330330
// Compilation fails on ARM32: b/195943306

0 commit comments

Comments
 (0)