https://kotlinlang.org logo
#multiplatform
Title
# multiplatform
j

juh juh

08/18/2022, 9:13 AM
How can I pass compiler arguments to all compile targets in kotlin/multiplatform? To be specific, I want to add
-Xno-param-assertions argument
to my release builds to remove runtime null assertions for all the arguments
o

Oliver.O

08/18/2022, 10:10 AM
Copy code
tasks.withType<org.jetbrains.kotlin.gradle.dsl.KotlinCompile<*>>().configureEach {
        kotlinOptions.freeCompilerArgs += listOf(...)
    }
j

juh juh

08/18/2022, 10:20 AM
Thanks! It works
3 Views