Skip to content

Commit

Permalink
HBASE-27741 Fall back to protoc osx-x86_64 on Apple Silicon
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
ndimiduk committed Mar 22, 2023
1 parent 40d2545 commit 6024a24
Showing 1 changed file with 17 additions and 0 deletions.
17 changes: 17 additions & 0 deletions hbase-build-configuration/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -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>

0 comments on commit 6024a24

Please sign in to comment.