Skip to content

Commit

Permalink
Remove -version flag to enable K/N compilation.
Browse files Browse the repository at this point in the history
  • Loading branch information
woainikk committed Sep 26, 2024
1 parent bd15a8f commit 6a19c24
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 2 deletions.
1 change: 0 additions & 1 deletion buildSrc/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -76,7 +76,6 @@ tasks.withType<org.jetbrains.kotlin.gradle.tasks.KotlinCompile>().configureEach
kotlinOptions.freeCompilerArgs += listOf(
"-Xsuppress-version-warnings",
"-Xskip-metadata-version-check",
"-version"
)

if (kotlin_language_version != null) {
Expand Down
2 changes: 1 addition & 1 deletion buildSrc/src/main/kotlin/Compilations.kt
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ fun KotlinCompilation<KotlinCommonOptions>.configureCompilation() {
// allWarningsAsErrors = true
}

freeCompilerArgs += listOf("-opt-in=kotlin.RequiresOptIn", "-version")
freeCompilerArgs += listOf("-opt-in=kotlin.RequiresOptIn")
freeCompilerArgs += "-Xexpect-actual-classes"
}
}

0 comments on commit 6a19c24

Please sign in to comment.