Fix M1 support, disable video support for M1

This commit is contained in:
Edwin Jakobs
2022-02-11 11:24:59 +01:00
parent 11dc0f71d9
commit 24a5f7f091

View File

@@ -74,8 +74,8 @@ val ormlFeatures = setOf<String>(
)
/** ## additional OPENRNDR features to be added to this project */
val openrndrFeatures = setOf(
"video"
val openrndrFeatures = setOfNotNull(
if (DefaultNativePlatform("current").architecture.name != "arm-v8") "video" else null
)
/** ## configure the type of logging this project uses */
@@ -218,7 +218,7 @@ class Openrndr {
} else when (OperatingSystem.current()) {
OperatingSystem.WINDOWS -> "windows"
OperatingSystem.MAC_OS -> when (val h = DefaultNativePlatform("current").architecture.name) {
"aarch64" -> "macos-arm64"
"arm-v8" -> "macos-arm64"
else -> "macos"
}
OperatingSystem.LINUX -> when (val h = DefaultNativePlatform("current").architecture.name) {
@@ -266,5 +266,4 @@ class Openrndr {
}
}
}
println("this is the architecture we found: ${DefaultNativePlatform("current").architecture.name}")
val openrndr = Openrndr()