HBASE-27741 Fall back to protoc osx-x86_64 on Apple Silicon

Old protobuf-2.5 doesn't know about Apple Silicon. Fall back to the x86 binary and hope that
rosetta continues to work.

https://cwiki.apache.org/confluence/display/HADOOP/Develop+on+Apple+Silicon+%28M1%29+macOS

Signed-off-by: Peter Somogyi <psomogyi@apache.org>
This commit is contained in:
Nick Dimiduk 2023-03-22 14:24:07 +01:00 committed by GitHub
parent d4edfe404e
commit 29ca26a765
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 17 additions and 0 deletions

View File

@ -114,5 +114,22 @@
</plugins> </plugins>
</build> </build>
</profile> </profile>
<profile>
<!--
Old protobuf-2.5 doesn't know about Apple Silicon. Fall back to the x86 binary and hope
that rosetta continues to work.
https://cwiki.apache.org/confluence/display/HADOOP/Develop+on+Apple+Silicon+%28M1%29+macOS
-->
<id>apple-silicon-workaround</id>
<activation>
<os>
<family>mac</family>
<arch>aarch64</arch>
</os>
</activation>
<properties>
<os.detected.classifier>osx-x86_64</os.detected.classifier>
</properties>
</profile>
</profiles> </profiles>
</project> </project>