Skip to content

Commit

Permalink
Revert "Remove -version flag to enable K/N compilation."
Browse files Browse the repository at this point in the history
This reverts commit 6a19c24
  • Loading branch information
tbogdanova committed Oct 18, 2024
1 parent 1df1d93 commit 40ab1d4
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions buildSrc/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -78,6 +78,7 @@ tasks.withType<org.jetbrains.kotlin.gradle.tasks.KotlinCompile>().configureEach
compilerOptions.freeCompilerArgs.addAll(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")
freeCompilerArgs += listOf("-opt-in=kotlin.RequiresOptIn", "-version")
freeCompilerArgs += "-Xexpect-actual-classes"
}
}

0 comments on commit 40ab1d4

Please sign in to comment.