Merge pull request #9422 from ngg/disable-musttail-winx86

Disable [[clang::musttail]] attribute on Windows x86
pull/9426/merge
Joshua Haberman 3 years ago committed by GitHub
commit b48ba578dd
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 4
      src/google/protobuf/port_def.inc

@ -230,10 +230,12 @@
#error PROTOBUF_TAILCALL was previously defined
#endif
#if __has_cpp_attribute(clang::musttail) && \
!defined(__arm__) && !defined(_ARCH_PPC) && !defined(__wasm__)
!defined(__arm__) && !defined(_ARCH_PPC) && !defined(__wasm__) && \
!(defined(_MSC_VER) && defined(_M_IX86))
# 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
# endif
#define PROTOBUF_MUSTTAIL [[clang::musttail]]
#define PROTOBUF_TAILCALL true

Loading…
Cancel
Save