From ce9a45bf92edb6686ba0ce96b94c836de2825769 Mon Sep 17 00:00:00 2001 From: Svyatoslav Scherbina Date: Wed, 9 Aug 2023 12:14:13 +0000 Subject: [PATCH] Native: enable HMPP in tests/samples Remove `kotlin.mpp.hierarchicalStructureSupport=false`. Disabling HMPP is not supported anymore. ^KT-59304 --- .../samples/echoServer/src/echoServerMain/kotlin/EchoServer.kt | 1 + kotlin-native/backend.native/tests/samples/gradle.properties | 3 --- 2 files changed, 1 insertion(+), 3 deletions(-) diff --git a/kotlin-native/backend.native/tests/samples/echoServer/src/echoServerMain/kotlin/EchoServer.kt b/kotlin-native/backend.native/tests/samples/echoServer/src/echoServerMain/kotlin/EchoServer.kt index 748c0e3eaf2..c69e690b8ce 100644 --- a/kotlin-native/backend.native/tests/samples/echoServer/src/echoServerMain/kotlin/EchoServer.kt +++ b/kotlin-native/backend.native/tests/samples/echoServer/src/echoServerMain/kotlin/EchoServer.kt @@ -30,6 +30,7 @@ fun main(args: Array) { with(serverAddr) { memset(this.ptr, 0, sockaddr_in.size.convert()) + @OptIn(UnsafeNumber::class) sin_family = AF_INET.convert() sin_port = posix_htons(port).convert() } diff --git a/kotlin-native/backend.native/tests/samples/gradle.properties b/kotlin-native/backend.native/tests/samples/gradle.properties index 9797a2a5ffc..d4e6b3b61ef 100644 --- a/kotlin-native/backend.native/tests/samples/gradle.properties +++ b/kotlin-native/backend.native/tests/samples/gradle.properties @@ -16,6 +16,3 @@ kotlin.native.home=../../dist # Increase memory for in-process compiler execution. org.gradle.jvmargs=-Xmx3g - -# Disable HMPP with metadata until KT-50547 is not fixed -kotlin.mpp.hierarchicalStructureSupport=false \ No newline at end of file