eygraber
09/15/2023, 10:17 PMrunReleaseExecutableMacosX64
because that matches the pattern that the other targets use, but it isn't found. Is there a different way to do this for Mac targets?Jeff Lockhart
09/15/2023, 10:27 PMmacosX64Main
? I would expect that to be the run task if so. I have a native app that creates the host system's platform as the native source set named nativeMain
and the run task is runReleaseExecutableNative
.eygraber
09/15/2023, 10:29 PMnativeMain
source set so I'll try thateygraber
09/15/2023, 10:31 PMJeff Lockhart
09/15/2023, 10:35 PMrun
group, I have two tasks: runDebugExecutableNative
and runReleaseExecutableNative
.eygraber
09/15/2023, 10:36 PMJeff Lockhart
09/15/2023, 10:39 PMmacosX64("native") {
binaries.executable {
entryPoint = "main"
}
}
eygraber
09/15/2023, 10:40 PMbinaries.executable
which works on Linux and mingwchr
09/15/2023, 10:44 PM:tasks --all
?Jeff Lockhart
09/15/2023, 10:52 PMrunTask
property. E.g.:
macosX64("native") {
binaries.executable {
println("run task name = ${runTask?.name}")
}
}
For me, this prints out those two task names. It looks like runTask
is null if the target is not the host system, so it's not runnable. I assume you're using an x64 Mac and not Arm64?eygraber
09/18/2023, 12:30 AMrunTask?.name
and see what I geteygraber
09/18/2023, 3:34 AM!it.konanTarget.family.isAppleFamily