feat(protocol/protoc): support macOS ARM64 natively compile #6502
+19
−6
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
What does this PR do?
This PR adds support for
macOS ARM64(Apple Silicon) by upgrading toprotoc-gen-grpc-java 1.76.0, which provides a Universal Binary forprotoc-gen-grpc-javaand enables it to run natively on ARM64-based Macs.Intel (x86_64)support remains unchanged, continuing to use the existingprotoc-gen-grpc-java 1.60version.Why are these changes required?
macOS ARM64 native support: With the rise of Apple Silicon, there is a need to support ARM64 architecture natively on macOS. Previous versions relied on Rosetta for emulation, leading to performance loss. Upgrading to 1.76.0 and providing a Universal Binary resolves this issue for Apple Silicon devices.
error without Rosetta:
1.60.0-osx-aarch_64:
1.76.0-osx-aarch_64.exe:
This PR has been tested by:
Follow up
Extra details