Browse Source

Fix M1 support, disable video support for M1

master
Edwin Jakobs 3 years ago
parent
commit
24a5f7f091
  1. 7
      build.gradle.kts

7
build.gradle.kts

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

Loading…
Cancel
Save