Skip to content

Commit

Permalink
add -XstartOnFirstThread jvm arg on mac os
Browse files Browse the repository at this point in the history
  • Loading branch information
fabmax committed Jan 31, 2025
1 parent 8b03ec8 commit 16f6cbf
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions kool-demo/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -89,8 +89,12 @@ tasks["clean"].doLast {
}

tasks.register<JavaExec>("run") {
dependsOn("cacheRuntimeLibs")
group = "application"
mainClass.set("de.fabmax.kool.demo.MainKt")
if (OperatingSystem.current().isMacOsX) {
jvmArgs = listOf("-XstartOnFirstThread")
}

kotlin {
val main = targets["desktop"].compilations["main"]
Expand Down

0 comments on commit 16f6cbf

Please sign in to comment.