Skip to content

Commit 32fe3d7

Browse files
committed
[build] support apple m1 build
1 parent 5502b40 commit 32fe3d7

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
@@ -148,7 +148,7 @@
148148
<!-- required by zookeeper test utilities imported from ZooKeeper -->
149149
<junit5.version>5.6.2</junit5.version>
150150
<libthrift.version>0.14.2</libthrift.version>
151-
<lombok.version>1.18.20</lombok.version>
151+
<lombok.version>1.18.22</lombok.version>
152152
<log4j.version>2.17.1</log4j.version>
153153
<lz4.version>1.3.0</lz4.version>
154154
<mockito.version>3.12.4</mockito.version>
@@ -1191,6 +1191,18 @@
11911191
</plugins>
11921192
</build>
11931193
</profile>
1194+
<profile>
1195+
<id>mac-apple-silicon</id>
1196+
<activation>
1197+
<os>
1198+
<family>mac</family>
1199+
<arch>aarch64</arch>
1200+
</os>
1201+
</activation>
1202+
<properties>
1203+
<nar.aolProperties>src/apple_m1_aol.properties</nar.aolProperties>
1204+
</properties>
1205+
</profile>
11941206
<profile>
11951207
<id>apache-release</id>
11961208
<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)