Skip to content

Commit 917c764

Browse files
hezhangjiannicoloboschi
authored andcommitted
[build] support apple m1 build (apache#3175)
(cherry picked from commit dc2b0c5) (cherry picked from commit 55d5d17)
1 parent d7eb40b commit 917c764

File tree

2 files changed

+51
-1
lines changed

2 files changed

+51
-1
lines changed

pom.xml

+13-1
Original file line numberDiff line numberDiff line change
@@ -145,7 +145,7 @@
145145
<jna.version>3.2.7</jna.version>
146146
<junit.version>4.12</junit.version>
147147
<libthrift.version>0.14.2</libthrift.version>
148-
<lombok.version>1.18.20</lombok.version>
148+
<lombok.version>1.18.22</lombok.version>
149149
<lz4.version>1.3.0</lz4.version>
150150
<mockito.version>3.12.4</mockito.version>
151151
<netty.version>4.1.72.Final</netty.version>
@@ -1164,6 +1164,18 @@
11641164
</plugins>
11651165
</build>
11661166
</profile>
1167+
<profile>
1168+
<id>mac-apple-silicon</id>
1169+
<activation>
1170+
<os>
1171+
<family>mac</family>
1172+
<arch>aarch64</arch>
1173+
</os>
1174+
</activation>
1175+
<properties>
1176+
<nar.aolProperties>src/apple_m1_aol.properties</nar.aolProperties>
1177+
</properties>
1178+
</profile>
11671179
<profile>
11681180
<id>apache-release</id>
11691181
<build>

src/apple_m1_aol.properties

+38
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,38 @@
1+
#
2+
#
3+
# Licensed to the Apache Software Foundation (ASF) under one
4+
# or more contributor license agreements. See the NOTICE file
5+
# distributed with this work for additional information
6+
# regarding copyright ownership. The ASF licenses this file
7+
# to you under the Apache License, Version 2.0 (the
8+
# "License"); you may not use this file except in compliance
9+
# with the License. You may obtain a copy of the License at
10+
#
11+
# http://www.apache.org/licenses/LICENSE-2.0
12+
#
13+
# Unless required by applicable law or agreed to in writing,
14+
# software distributed under the License is distributed on an
15+
# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
16+
# KIND, either express or implied. See the License for the
17+
# specific language governing permissions and limitations
18+
# under the License.
19+
#
20+
#
21+
aarch64.MacOSX.linker=g++
22+
23+
aarch64.MacOSX.gpp.c.compiler=gcc
24+
aarch64.MacOSX.gpp.c.defines=Darwin GNU_GCC
25+
aarch64.MacOSX.gpp.c.options=-Wall -Wno-long-long -Wpointer-arith -Wconversion
26+
aarch64.MacOSX.gpp.c.includes=**/*.c
27+
aarch64.MacOSX.gpp.c.excludes=
28+
29+
aarch64.MacOSX.gpp.java.include=include;include/darwin
30+
aarch64.MacOSX.gpp.java.runtimeDirectory=IGNORED
31+
32+
aarch64.MacOSX.gpp.lib.prefix=lib
33+
aarch64.MacOSX.gpp.shared.prefix=lib
34+
aarch64.MacOSX.gpp.static.extension=a
35+
aarch64.MacOSX.gpp.shared.extension=dylib
36+
aarch64.MacOSX.gpp.plugin.extension=bundle
37+
aarch64.MacOSX.gpp.jni.extension=jnilib
38+
aarch64.MacOSX.gpp.executable.extension=

0 commit comments

Comments
 (0)