mirror of
https://github.com/yairm210/Unciv.git
synced 2025-07-05 15:59:50 +07:00
Disable -XstartOnFirstThread
when not on Mac. (#5782)
* Disable `-XstartOnFirstThread` when not on Mac. * Update desktop Mac arguments. * Disable JVM Mac args only for `desktop:run`.
This commit is contained in:
@ -25,7 +25,10 @@ val deployFolder = file("../deploy")
|
||||
// and https://github.com/yairm210/Unciv/issues/5679
|
||||
val jvmArgsForMac = listOf("-XstartOnFirstThread", "-Djava.awt.headless=true")
|
||||
tasks.register<JavaExec>("run") {
|
||||
jvmArgs = jvmArgsForMac
|
||||
jvmArgs = mutableListOf<String>()
|
||||
if ("mac" in System.getProperty("os.name").toLowerCase())
|
||||
(jvmArgs as MutableList<String>).addAll(jvmArgsForMac)
|
||||
// These are non-standard, only available/necessary on Mac.
|
||||
|
||||
dependsOn(tasks.getByName("classes"))
|
||||
|
||||
|
Reference in New Issue
Block a user