You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@bookkeeper.apache.org by ch...@apache.org on 2022/12/08 14:51:35 UTC

[bookkeeper] branch branch-4.14 updated: [build] support apple m1 build (#3175)

This is an automated email from the ASF dual-hosted git repository.

chenhang pushed a commit to branch branch-4.14
in repository https://gitbox.apache.org/repos/asf/bookkeeper.git


The following commit(s) were added to refs/heads/branch-4.14 by this push:
     new 55d5d17193 [build] support apple m1 build (#3175)
55d5d17193 is described below

commit 55d5d17193c29e143549d878f3fcd3aef1e2198e
Author: ZhangJian He <sh...@gmail.com>
AuthorDate: Wed Apr 6 13:46:17 2022 +0800

    [build] support apple m1 build (#3175)
    
    (cherry picked from commit dc2b0c5dfd9a4cdef44cdab3da46c7ea8027ab13)
---
 pom.xml                     | 14 +++++++++++++-
 src/apple_m1_aol.properties | 38 ++++++++++++++++++++++++++++++++++++++
 2 files changed, 51 insertions(+), 1 deletion(-)

diff --git a/pom.xml b/pom.xml
index d1f24f72cc..90da9b9e13 100644
--- a/pom.xml
+++ b/pom.xml
@@ -145,7 +145,7 @@
     <jna.version>3.2.7</jna.version>
     <junit.version>4.12</junit.version>
     <libthrift.version>0.14.2</libthrift.version>
-    <lombok.version>1.18.20</lombok.version>
+    <lombok.version>1.18.22</lombok.version>
     <lz4.version>1.3.0</lz4.version>
     <mockito.version>3.12.4</mockito.version>
     <netty.version>4.1.72.Final</netty.version>
@@ -1164,6 +1164,18 @@
         </plugins>
       </build>
     </profile>
+    <profile>
+      <id>mac-apple-silicon</id>
+      <activation>
+        <os>
+          <family>mac</family>
+          <arch>aarch64</arch>
+        </os>
+      </activation>
+      <properties>
+        <nar.aolProperties>src/apple_m1_aol.properties</nar.aolProperties>
+      </properties>
+    </profile>
     <profile>
       <id>apache-release</id>
       <build>
diff --git a/src/apple_m1_aol.properties b/src/apple_m1_aol.properties
new file mode 100644
index 0000000000..797b9a7b28
--- /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=