How to apply free compile args in Kotlin Multiplatform?

To apply free compile args in Android I used below line (Gradle Kotlin DSL).
freeCompilerArgs = freeCompilerArgs + "-Xallow-result-return-type" + "-Xinline-classes"

How to apply it for KMP? I’m using Android Studio.

tasks.withType<KotlinCompileCommon>().configureEach {
    kotlinOptions {
        freeCompilerArgs = freeCompilerArgs + "-Xallow-result-return-type" + "-Xinline-classes"
    }
}