Do not generate JVM 1.8+ annotation targets in stdlib, -jdk7, -jdk8, reflect

See #KT-53712
This commit is contained in:
Abduqodiri Qurbonzoda
2022-09-01 05:08:08 +03:00
committed by Space
parent f07163125b
commit f3e8816dc3
4 changed files with 4 additions and 0 deletions
+1
View File
@@ -52,6 +52,7 @@ compileKotlin {
"-Xno-optimized-callable-references",
"-Xno-kotlin-nothing-value-exception",
"-opt-in=kotlin.RequiresOptIn",
"-Xno-new-java-annotation-targets",
]
moduleName = "kotlin-reflection"
}
+1
View File
@@ -64,6 +64,7 @@ compileKotlin {
"-Xmultifile-parts-inherit",
"-opt-in=kotlin.RequiresOptIn",
"-opt-in=kotlin.contracts.ExperimentalContracts",
"-Xno-new-java-annotation-targets",
]
kotlinOptions.moduleName = project.name
}
+1
View File
@@ -64,6 +64,7 @@ compileKotlin {
kotlinOptions.freeCompilerArgs = [
"-Xallow-kotlin-package",
"-Xmultifile-parts-inherit",
"-Xno-new-java-annotation-targets",
]
kotlinOptions.moduleName = project.name
}
+1
View File
@@ -117,6 +117,7 @@ compileKotlin {
"-Xuse-14-inline-classes-mangling-scheme",
"-Xbuiltins-from-sources",
"-XXLanguage:+RangeUntilOperator",
"-Xno-new-java-annotation-targets",
]
moduleName = "kotlin-stdlib"
}