Repository: tokio-rs/prost (language: rust)

Issue:
Bundled Mac aarch64 binary support
Would be great to be able to support bundled protoc builds for native compiles on the new Mac's with aarch64


Discussion / hints:

Fix patch:
diff --git a/prost-build/build.rs b/prost-build/build.rs
index d5586516e..4bc1cc6ed 100644
--- a/prost-build/build.rs
+++ b/prost-build/build.rs
@@ -42,6 +42,7 @@ fn bundled_protoc() -> Option<PathBuf> {
         ("linux", "x86_64") => "protoc-linux-x86_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
         ("windows", _) => "protoc-win32.exe",
         _ => return None,
     };


Test patch: