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 24, 2024
1 parent d1b7b49 commit eb960b9
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 eb960b9

Please sign in to comment.