From 3e9749e5913a7063e389c2631544bf4e0970a562 Mon Sep 17 00:00:00 2001 From: ZhangJian He Date: Wed, 6 Apr 2022 13:46:17 +0800 Subject: [PATCH] [build] support apple m1 build (#3175) (cherry picked from commit dc2b0c5dfd9a4cdef44cdab3da46c7ea8027ab13) --- pom.xml | 12 ++++++++++++ src/apple_m1_aol.properties | 38 +++++++++++++++++++++++++++++++++++++ 2 files changed, 50 insertions(+) create mode 100644 src/apple_m1_aol.properties diff --git a/pom.xml b/pom.xml index 4b378dcbc25..8b261b2c70a 100644 --- a/pom.xml +++ b/pom.xml @@ -1111,6 +1111,18 @@ + + mac-apple-silicon + + + mac + aarch64 + + + + src/apple_m1_aol.properties + + jdk11-no-spotbugs diff --git a/src/apple_m1_aol.properties b/src/apple_m1_aol.properties new file mode 100644 index 00000000000..797b9a7b28b --- /dev/null +++ b/src/apple_m1_aol.properties @@ -0,0 +1,38 @@ +# +# +# Licensed to the Apache Software Foundation (ASF) under one +# or more contributor license agreements. See the NOTICE file +# distributed with this work for additional information +# regarding copyright ownership. The ASF licenses this file +# to you under the Apache License, Version 2.0 (the +# "License"); you may not use this file except in compliance +# with the License. You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, +# software distributed under the License is distributed on an +# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY +# KIND, either express or implied. See the License for the +# specific language governing permissions and limitations +# under the License. +# +# +aarch64.MacOSX.linker=g++ + +aarch64.MacOSX.gpp.c.compiler=gcc +aarch64.MacOSX.gpp.c.defines=Darwin GNU_GCC +aarch64.MacOSX.gpp.c.options=-Wall -Wno-long-long -Wpointer-arith -Wconversion +aarch64.MacOSX.gpp.c.includes=**/*.c +aarch64.MacOSX.gpp.c.excludes= + +aarch64.MacOSX.gpp.java.include=include;include/darwin +aarch64.MacOSX.gpp.java.runtimeDirectory=IGNORED + +aarch64.MacOSX.gpp.lib.prefix=lib +aarch64.MacOSX.gpp.shared.prefix=lib +aarch64.MacOSX.gpp.static.extension=a +aarch64.MacOSX.gpp.shared.extension=dylib +aarch64.MacOSX.gpp.plugin.extension=bundle +aarch64.MacOSX.gpp.jni.extension=jnilib +aarch64.MacOSX.gpp.executable.extension=