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 Nick Dimiduk
parent 40d2545200
commit 6024a24957
1 changed files with 17 additions and 0 deletions

View File

@ -114,5 +114,22 @@
</plugins>
</build>
</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>
</project>