Attempt to add macOS m1 libraries

This commit is contained in:
Edwin Jakobs
2022-02-10 17:37:55 +01:00
parent 0c82af93b2
commit 11dc0f71d9

View File

@@ -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()