From b375b8132121244e5a98c04f84a8bf014014b657 Mon Sep 17 00:00:00 2001 From: Graham Date: Sat, 9 Jan 2021 12:46:18 +0000 Subject: [PATCH] Add build flags for AArch64 macOS (thanks to Bart Pelle) --- aol.properties | 22 ++++++++++++++++++++++ 1 file changed, 22 insertions(+) diff --git a/aol.properties b/aol.properties index 4f09b09..26af8bf 100644 --- a/aol.properties +++ b/aol.properties @@ -86,6 +86,28 @@ x86_64.MacOSX.gcc.plugin.extension=bundle x86_64.MacOSX.gcc.jni.extension=jnilib x86_64.MacOSX.gcc.executable.extension= +# macOS aarch64 +aarch64.MacOSX.linker=gcc + +aarch64.MacOSX.gcc.c.compiler=gcc +aarch64.MacOSX.gcc.c.defines= +aarch64.MacOSX.gcc.c.options=-arch arm64 -x objective-c -Wall -Wextra -pedantic -Wno-int-to-pointer-cast -Wno-int-to-void-pointer-cast -Wno-unused-parameter +aarch64.MacOSX.gcc.c.includes=**/*.c +aarch64.MacOSX.gcc.c.excludes= + +aarch64.MacOSX.gcc.java.include=include;include/darwin +aarch64.MacOSX.gcc.java.runtimeDirectory=IGNORED + +aarch64.MacOSX.gcc.linker.options=-arch arm64 + +aarch64.MacOSX.gcc.lib.prefix=lib +aarch64.MacOSX.gcc.shared.prefix=lib +aarch64.MacOSX.gcc.static.extension=a +aarch64.MacOSX.gcc.shared.extension=dylib +aarch64.MacOSX.gcc.plugin.extension=bundle +aarch64.MacOSX.gcc.jni.extension=jnilib +aarch64.MacOSX.gcc.executable.extension= + # Windows i386 x86.Windows.msvc.c.defines=WIN32_LEAN_AND_MEAN # C4100: unused parameter