How can I pass compiler arguments to all compile t...
# multiplatform
j
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
Copy code
tasks.withType<org.jetbrains.kotlin.gradle.dsl.KotlinCompile<*>>().configureEach {
        kotlinOptions.freeCompilerArgs += listOf(...)
    }
j
Thanks! It works