diff options
Diffstat (limited to 'meta-python/recipes-devtools/python/python3-grpcio-tools/0001-protobuf-Disable-musttail-attribute-on-mips.patch')
| -rw-r--r-- | meta-python/recipes-devtools/python/python3-grpcio-tools/0001-protobuf-Disable-musttail-attribute-on-mips.patch | 30 |
1 files changed, 30 insertions, 0 deletions
diff --git a/meta-python/recipes-devtools/python/python3-grpcio-tools/0001-protobuf-Disable-musttail-attribute-on-mips.patch b/meta-python/recipes-devtools/python/python3-grpcio-tools/0001-protobuf-Disable-musttail-attribute-on-mips.patch new file mode 100644 index 0000000000..d19d1eee4c --- /dev/null +++ b/meta-python/recipes-devtools/python/python3-grpcio-tools/0001-protobuf-Disable-musttail-attribute-on-mips.patch | |||
| @@ -0,0 +1,30 @@ | |||
| 1 | From 64d737318656286f69ddc5ad654072785ddcbbed Mon Sep 17 00:00:00 2001 | ||
| 2 | From: Khem Raj <raj.khem@gmail.com> | ||
| 3 | Date: Fri, 16 Sep 2022 19:09:15 -0700 | ||
| 4 | Subject: [PATCH] protobuf: Disable musttail attribute on mips | ||
| 5 | |||
| 6 | See https://github.com/llvm/llvm-project/issues/57795 | ||
| 7 | |||
| 8 | Upstream-Status: Pending | ||
| 9 | Signed-off-by: Khem Raj <raj.khem@gmail.com> | ||
| 10 | --- | ||
| 11 | third_party/protobuf/src/google/protobuf/port_def.inc | 3 ++- | ||
| 12 | 1 file changed, 2 insertions(+), 1 deletion(-) | ||
| 13 | |||
| 14 | diff --git a/third_party/protobuf/src/google/protobuf/port_def.inc b/third_party/protobuf/src/google/protobuf/port_def.inc | ||
| 15 | index 37632cf..3c3c1e4 100644 | ||
| 16 | --- a/third_party/protobuf/src/google/protobuf/port_def.inc | ||
| 17 | +++ b/third_party/protobuf/src/google/protobuf/port_def.inc | ||
| 18 | @@ -230,7 +230,8 @@ | ||
| 19 | #error PROTOBUF_TAILCALL was previously defined | ||
| 20 | #endif | ||
| 21 | #if __has_cpp_attribute(clang::musttail) && \ | ||
| 22 | - !defined(__arm__) && !defined(_ARCH_PPC) && !defined(__wasm__) | ||
| 23 | + !defined(__arm__) && !defined(_ARCH_PPC) && !defined(__wasm__) && \ | ||
| 24 | + !defined(__mips__) | ||
| 25 | # ifndef PROTO2_OPENSOURCE | ||
| 26 | // Compilation fails on ARM32: b/195943306 | ||
| 27 | // Compilation fails on powerpc64le: b/187985113 | ||
| 28 | -- | ||
| 29 | 2.37.3 | ||
| 30 | |||
