From 11dc0f71d98115f4177a810955e03ef4e9baad3c Mon Sep 17 00:00:00 2001 From: Edwin Jakobs Date: Thu, 10 Feb 2022 17:37:55 +0100 Subject: [PATCH] Attempt to add macOS m1 libraries --- build.gradle.kts | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/build.gradle.kts b/build.gradle.kts index ad65f04..f49082d 100644 --- a/build.gradle.kts +++ b/build.gradle.kts @@ -217,7 +217,10 @@ class Openrndr { } } else when (OperatingSystem.current()) { OperatingSystem.WINDOWS -> "windows" - OperatingSystem.MAC_OS -> "macos" + OperatingSystem.MAC_OS -> when (val h = DefaultNativePlatform("current").architecture.name) { + "aarch64" -> "macos-arm64" + else -> "macos" + } OperatingSystem.LINUX -> when (val h = DefaultNativePlatform("current").architecture.name) { "x86-64" -> "linux-x64" "aarch64" -> "linux-arm64" @@ -263,5 +266,5 @@ class Openrndr { } } } - +println("this is the architecture we found: ${DefaultNativePlatform("current").architecture.name}") val openrndr = Openrndr()