I'm trying to set my `main` function for a `linuxX...
# kotlin-native
k
I'm trying to set my
main
function for a
linuxX64
execute to be a suspend fun.
Copy code
package org.climatechangemakers.hoa.slackbot

suspend fun main() { ... }
I configure the build as so.
Copy code
linuxX64 {
    binaries {
      executable {
        entryPoint = "org.climatechangemakers.hoa.slackbot.main"
      }
    }
  }
When I go to build, I get the following error.
Copy code
> Task :slackbot:linkReleaseExecutableLinuxX64 FAILED
e: Entry point can not be a suspend function.
I thought that
suspend fun main
was supported since like Kotlin 1.4? Is it not supported on native?
e
https://github.com/JetBrains/kotlin-native/pull/2067 it's been unsupported on native for as long as it's been supported on JVM
👍 1
I don't see a YouTrack ticket for native support, but that would probably be worth filing
k
Thanks, I'll file one.