Fix M1 support, disable video support for M1
This commit is contained in:
@@ -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()
|
||||
|
||||
Reference in New Issue
Block a user