Add -Xsuppress-deprecated-jvm-target-warning to modules compiled with 1.6

Currently this leads to an unknown argument warning, but it'll be
removed automatically on the next bootstrap.
This commit is contained in:
Alexander Udalov
2021-02-02 13:50:09 +01:00
parent 99b5e5a373
commit e0b6d4d917
25 changed files with 138 additions and 21 deletions
+2
View File
@@ -77,6 +77,7 @@ compileKotlin {
"-Xnormalize-constructor-calls=enable",
"-Xopt-in=kotlin.RequiresOptIn",
"-Xopt-in=kotlin.contracts.ExperimentalContracts",
"-Xsuppress-deprecated-jvm-target-warning",
]
kotlinOptions.moduleName = project.name
}
@@ -90,6 +91,7 @@ compileTestKotlin {
"-Xopt-in=kotlin.ExperimentalStdlibApi",
"-Xopt-in=kotlin.io.path.ExperimentalPathApi",
"-Xcommon-sources=${fileTree('../test').join(',')}",
"-Xsuppress-deprecated-jvm-target-warning",
]
}
+2 -1
View File
@@ -120,7 +120,8 @@ compileKotlin {
"-Xopt-in=kotlin.ExperimentalMultiplatform",
"-Xopt-in=kotlin.contracts.ExperimentalContracts",
"-Xinline-classes",
"-Xuse-14-inline-classes-mangling-scheme"
"-Xuse-14-inline-classes-mangling-scheme",
"-Xsuppress-deprecated-jvm-target-warning",
]
moduleName = "kotlin-stdlib"
}