Do not add linux target on aarch64 architectures (#25)

It would fail as there is no kotlin-native toolchain yet and prevent us from building JVM targets.
This commit is contained in:
Fabrice Drouin 2024-03-28 14:23:05 +01:00 committed by GitHub
parent 3389035dbf
commit 75247e4de2
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -88,7 +88,11 @@ kotlin {
}
val currentOs = org.gradle.internal.os.OperatingSystem.current()
if (currentOs.isLinux) {
val arch = System.getProperty("os.arch")
if (currentOs.isLinux && arch != "aarch64") {
// there is no kotlin native toolchain for linux arm64 yet, but we can still build for the JVM
// see https://youtrack.jetbrains.com/issue/KT-51794/Cant-run-JVM-targets-on-ARM-Linux-when-using-Kotlin-Multiplatform-plugin
linuxX64 {
phoenixBinaries()
}