Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- plugins {
- kotlin("multiplatform") version "1.6.0"
- }
- kotlin {
- linuxX64("native") {
- binaries {
- executable {
- entryPoint = "main"
- }
- }
- }
- sourceSets {
- val nativeMain by getting {
- dependencies {
- implementation("io.ktor:ktor-server-cio:2.0.0-eap-275")
- }
- }
- }
- targets.withType(org.jetbrains.kotlin.gradle.plugin.mpp.KotlinNativeTarget::class.java) {
- binaries.all {
- binaryOptions["memoryModel"] = "experimental"
- freeCompilerArgs += listOf("-opt-in=kotlin.RequiresOptIn", "-Xdisable-phases=EscapeAnalysis", "-Xbinary=memoryModel=experimental")
- }
- }
- }
Add Comment
Please, Sign In to add comment