Commend -Xopt-in deprecation warning (due to bootstrap problems)

This commit is contained in:
Mikhail Glukhikh
2021-07-08 14:09:54 +03:00
committed by teamcityserver
parent a92ab1bc86
commit a997a98054
3 changed files with 4 additions and 5 deletions
@@ -400,9 +400,10 @@ abstract class CommonCompilerArguments : CommonToolArguments() {
}
val optInDeprecatedFqNames = optInDeprecated?.toList().orEmpty()
if (optInDeprecatedFqNames.isNotEmpty()) {
collector.report(
WARNING, "'-Xopt-in' is deprecated and will be removed in a future release, please use -opt-in instead"
)
// TODO: uncomment this after -opt-in bootstrapping and Gradle script fixing
// collector.report(
// WARNING, "'-Xopt-in' is deprecated and will be removed in a future release, please use -opt-in instead"
// )
}
put(AnalysisFlags.useExperimental, useExperimentalFqNames + optInDeprecatedFqNames + optIn?.toList().orEmpty())
put(AnalysisFlags.expectActualLinker, expectActualLinker)