diff --git a/prost-build/build.rs b/prost-build/build.rs index 3ce4848b9..2d28216a1 100644 --- a/prost-build/build.rs +++ b/prost-build/build.rs @@ -41,6 +41,8 @@ fn bundled_protoc() -> Option { let protoc_bin_name = match (env::consts::OS, env::consts::ARCH) { ("linux", "x86") => "protoc-linux-x86_32", ("linux", "x86_64") => "protoc-linux-x86_64", + ("linux", "s390x") => "protoc-linux-s390x", + ("linux", "powerpc64le") => "protoc-linux-ppcle_64", ("linux", "aarch64") => "protoc-linux-aarch_64", ("macos", "x86_64") => "protoc-osx-x86_64", ("macos", "aarch64") => "protoc-osx-x86_64", // will be translated to aarch64 by Rosetta diff --git a/prost-build/third-party/protobuf/protoc-linux-ppcle_64 b/prost-build/third-party/protobuf/protoc-linux-ppcle_64 new file mode 100755 index 000000000..4dadceaac Binary files /dev/null and b/prost-build/third-party/protobuf/protoc-linux-ppcle_64 differ diff --git a/prost-build/third-party/protobuf/protoc-linux-s390x b/prost-build/third-party/protobuf/protoc-linux-s390x new file mode 100755 index 000000000..442caf6b5 Binary files /dev/null and b/prost-build/third-party/protobuf/protoc-linux-s390x differ diff --git a/prost-build/third-party/update-bundled-protobuf.sh b/prost-build/third-party/update-bundled-protobuf.sh index 05655372c..0ee726839 100755 --- a/prost-build/third-party/update-bundled-protobuf.sh +++ b/prost-build/third-party/update-bundled-protobuf.sh @@ -15,6 +15,8 @@ ARCHS=( \ "linux-aarch_64" \ "linux-x86_32" \ "linux-x86_64" \ + "linux-s390x" \ + "linux-ppcle_64" \ "osx-x86_64" \ "win32" \ )