Kotlin: Opt in to DeprecatedForRemovalCompilerApi

We'll need a proper fix for this, but this will keep things working in
the meantime.
This commit is contained in:
Ian Lynagh
2025-07-23 12:50:17 +01:00
parent 709c111522
commit 604af65b02

View File

@@ -83,7 +83,7 @@ kt_javac_options(
"kotlin.RequiresOptIn", "kotlin.RequiresOptIn",
"org.jetbrains.kotlin.ir.symbols.%s" % "org.jetbrains.kotlin.ir.symbols.%s" %
("IrSymbolInternals" if version_less(v, "2.0.0") else "UnsafeDuringIrConstructionAPI"), ("IrSymbolInternals" if version_less(v, "2.0.0") else "UnsafeDuringIrConstructionAPI"),
], ] + ([] if version_less(v, "2.2.20") else ["org.jetbrains.kotlin.DeprecatedForRemovalCompilerApi"]),
x_suppress_version_warnings = True, x_suppress_version_warnings = True,
), ),
# * extractor.name is different for each version, so we need to put it in different output dirs # * extractor.name is different for each version, so we need to put it in different output dirs