diff --git a/kotlin-native/Interop/JsRuntime/src/main/kotlin/jsinterop.kt b/kotlin-native/Interop/JsRuntime/src/main/kotlin/jsinterop.kt index 3c271ef4793..894493191c1 100644 --- a/kotlin-native/Interop/JsRuntime/src/main/kotlin/jsinterop.kt +++ b/kotlin-native/Interop/JsRuntime/src/main/kotlin/jsinterop.kt @@ -139,5 +139,7 @@ fun JsValue.setter(property: String, string: String) { object ArenaManager { val globalArena = allocateArena() + + @Suppress("VARIABLE_IN_SINGLETON_WITHOUT_THREAD_LOCAL") var currentArena = globalArena -} \ No newline at end of file +} diff --git a/kotlin-native/Interop/Runtime/build.gradle.kts b/kotlin-native/Interop/Runtime/build.gradle.kts index 6132d96490a..45c6a9d5ab5 100644 --- a/kotlin-native/Interop/Runtime/build.gradle.kts +++ b/kotlin-native/Interop/Runtime/build.gradle.kts @@ -78,7 +78,7 @@ tasks.withType().configureEach freeCompilerArgs = listOf("-Xuse-experimental=kotlin.ExperimentalUnsignedTypes", "-Xuse-experimental=kotlin.Experimental", "-Xopt-in=kotlin.RequiresOptIn", - "-XXLanguage:+InlineClasses", + "-Xinline-classes", "-Xskip-prerelease-check") allWarningsAsErrors = true } diff --git a/kotlin-native/Interop/Runtime/src/native/kotlin/kotlinx/cinterop/NativeTypes.kt b/kotlin-native/Interop/Runtime/src/native/kotlin/kotlinx/cinterop/NativeTypes.kt index b7feb4f7359..34267719d4e 100644 --- a/kotlin-native/Interop/Runtime/src/native/kotlin/kotlinx/cinterop/NativeTypes.kt +++ b/kotlin-native/Interop/Runtime/src/native/kotlin/kotlinx/cinterop/NativeTypes.kt @@ -58,6 +58,7 @@ external fun CPointer<*>.getRawValue(): NativePtr internal fun CPointer<*>.cPointerToString() = "CPointer(raw=$rawValue)" +@Suppress("FINAL_UPPER_BOUND") public class Vector128VarOf(rawPtr: NativePtr) : CVariable(rawPtr) { @Deprecated("Use sizeOf() or alignOf() instead.") @Suppress("DEPRECATION") @@ -66,6 +67,7 @@ public class Vector128VarOf(rawPtr: NativePtr) : CVariable(rawPtr public typealias Vector128Var = Vector128VarOf +@Suppress("FINAL_UPPER_BOUND", "UNCHECKED_CAST") public var Vector128VarOf.value: T get() = nativeMemUtils.getVector(this) as T set(value) = nativeMemUtils.putVector(this, value) diff --git a/kotlin-native/backend.native/build.gradle b/kotlin-native/backend.native/build.gradle index ede4bda0893..4eef8744483 100644 --- a/kotlin-native/backend.native/build.gradle +++ b/kotlin-native/backend.native/build.gradle @@ -252,7 +252,7 @@ targetList.each { target -> def testCommon = project(":kotlin-test:kotlin-test-common").files("src/main/kotlin").files args = [*konanArgs, '-output', project(':kotlin-native:runtime').file("build/${target}Stdlib"), - '-produce', 'library', '-module-name', 'stdlib', '-XXLanguage:+AllowContractsForCustomFunctions', + '-produce', 'library', '-module-name', 'stdlib', '-Xmulti-platform', '-Xopt-in=kotlin.RequiresOptIn', '-Xinline-classes', '-Xopt-in=kotlin.contracts.ExperimentalContracts', '-Xopt-in=kotlin.ExperimentalMultiplatform', @@ -358,4 +358,4 @@ publishing { from components.java } } -} \ No newline at end of file +} diff --git a/kotlin-native/endorsedLibraries/kotlinx.cli/build.gradle b/kotlin-native/endorsedLibraries/kotlinx.cli/build.gradle index 7145aa0b3da..48d0e11e6fb 100644 --- a/kotlin-native/endorsedLibraries/kotlinx.cli/build.gradle +++ b/kotlin-native/endorsedLibraries/kotlinx.cli/build.gradle @@ -93,7 +93,7 @@ targetList.each { target -> jvmArgs = konanJvmArgs args = [*konanArgs, '-output', outputFile, - '-produce', 'library', '-module-name', moduleName, '-XXLanguage:+AllowContractsForCustomFunctions', + '-produce', 'library', '-module-name', moduleName, '-Xmulti-platform', '-Xopt-in=kotlinx.cli.ExperimentalCli', '-Xopt-in=kotlin.ExperimentalMultiplatform', '-Xallow-result-return-type', '-Werror', '-Xopt-in=kotlin.RequiresOptIn',