Guest User

Untitled

a guest
Dec 3rd, 2021
34
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Kotlin 0.73 KB | None | 0 0
  1. plugins {
  2.     kotlin("multiplatform") version "1.6.0"
  3. }
  4.  
  5. kotlin {
  6.     linuxX64("native") {
  7.         binaries {
  8.             executable {
  9.                 entryPoint = "main"
  10.             }
  11.         }
  12.     }
  13.     sourceSets {
  14.         val nativeMain by getting {
  15.             dependencies {
  16.                 implementation("io.ktor:ktor-server-cio:2.0.0-eap-275")
  17.             }
  18.         }
  19.     }
  20.     targets.withType(org.jetbrains.kotlin.gradle.plugin.mpp.KotlinNativeTarget::class.java) {
  21.         binaries.all {
  22.             binaryOptions["memoryModel"] = "experimental"
  23.             freeCompilerArgs += listOf("-opt-in=kotlin.RequiresOptIn", "-Xdisable-phases=EscapeAnalysis", "-Xbinary=memoryModel=experimental")
  24.         }
  25.     }
  26. }
Add Comment
Please, Sign In to add comment