We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 7e51ac9 commit ca48026Copy full SHA for ca48026
cli/build.gradle.kts
@@ -1,5 +1,6 @@
1
import org.jetbrains.kotlin.gradle.dsl.KotlinMultiplatformExtension
2
import org.jetbrains.kotlin.gradle.plugin.mpp.KotlinNativeTarget
3
+import org.jetbrains.kotlin.gradle.plugin.mpp.NativeBuildType
4
5
plugins {
6
kotlin("multiplatform")
@@ -32,7 +33,9 @@ kotlin {
32
33
34
targets.filterIsInstance<KotlinNativeTarget>().forEach { target ->
35
target.binaries {
- executable {
36
+ val isDebug = version.toString().contains("SNAPSHOT")
37
+
38
+ executable(listOf(if (isDebug) NativeBuildType.DEBUG else NativeBuildType.RELEASE)) {
39
baseName = "kasciffy"
40
entryPoint = "dev.gmitch215.kasciffy.cli.main"
41
}
0 commit comments