kevin.cianfarini
06/13/2022, 2:56 AMmain
function for a linuxX64
execute to be a suspend fun.
package org.climatechangemakers.hoa.slackbot
suspend fun main() { ... }
I configure the build as so.
linuxX64 {
binaries {
executable {
entryPoint = "org.climatechangemakers.hoa.slackbot.main"
}
}
}
When I go to build, I get the following error.
> 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?ephemient
06/13/2022, 3:11 AMephemient
06/13/2022, 3:12 AMkevin.cianfarini
06/13/2022, 3:15 AM