HADOOP-17939. Support building on Apple Silicon (#3486)

Support building on Apple Silicon with ARM CPUs by using the x86_64 version of protoc.

Contributed by  Dongjoon Hyun

Change-Id: I4b8330098822f1fd28f0113650eb709d53bcc690
This commit is contained in:
Dongjoon Hyun 2021-09-27 05:27:10 -07:00 committed by Steve Loughran
parent bb08de559a
commit ca7fb6a813
No known key found for this signature in database
GPG Key ID: D22CF846DBB162A0
1 changed files with 2 additions and 0 deletions

View File

@ -2218,6 +2218,8 @@
</activation> </activation>
<properties> <properties>
<build.platform>Mac_OS_X-${sun.arch.data.model}</build.platform> <build.platform>Mac_OS_X-${sun.arch.data.model}</build.platform>
<!-- To make protoc work on Apple Silicon via fallback -->
<os.detected.classifier>osx-x86_64</os.detected.classifier>
</properties> </properties>
</profile> </profile>
<profile> <profile>