Skip to content

Commit

Permalink
Do not add linux target on aarch64 architectures (#25)
Browse files Browse the repository at this point in the history
It would fail as there is no kotlin-native toolchain yet and prevent us from building JVM targets.
  • Loading branch information
sstone authored Mar 28, 2024
1 parent 3389035 commit 75247e4
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -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()
}
Expand Down

0 comments on commit 75247e4

Please sign in to comment.