Skip to content

Commit 3e9749e

Browse files
hezhangjianzhiyuanlei
authored and
zhiyuanlei
committed
[build] support apple m1 build (apache#3175)
(cherry picked from commit dc2b0c5)
1 parent 23cd0d1 commit 3e9749e

File tree

2 files changed

+50
-0
lines changed

2 files changed

+50
-0
lines changed

pom.xml

+12
Original file line numberDiff line numberDiff line change
@@ -1111,6 +1111,18 @@
11111111
</plugins>
11121112
</build>
11131113
</profile>
1114+
<profile>
1115+
<id>mac-apple-silicon</id>
1116+
<activation>
1117+
<os>
1118+
<family>mac</family>
1119+
<arch>aarch64</arch>
1120+
</os>
1121+
</activation>
1122+
<properties>
1123+
<nar.aolProperties>src/apple_m1_aol.properties</nar.aolProperties>
1124+
</properties>
1125+
</profile>
11141126

11151127
<profile>
11161128
<id>jdk11-no-spotbugs</id>

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)