i need to add this: jvmArgs += listOf("-Dcom.sksam...
# compose-desktop
z
i need to add this: jvmArgs += listOf("-Dcom.sksamuel.scrimage.webp.platform=mac-arm64") but only on macos and also only on arm64 macos. how can i do that in the gradle config? or otherwise? addon question: some things in the "macOS {" section of build.gradle.kts it will be applied everywhere not only macos. why? how can i have things that are onlly applied on that 1 architecure?
c
workaround would be to conditionally add the args with
Copy code
val isMac = System.getProperty("os.name") == "Mac OS X"
    val isArm64 = System.getProperty("os.arch") == "aarch64"

 if (isMac && isArm64) { ... }
also not sure why a native platform would take
jvmArgs
? I guess you are mixing up the target platforms with compiler platforms.