File tree Expand file tree Collapse file tree 1 file changed +28
-22
lines changed
Expand file tree Collapse file tree 1 file changed +28
-22
lines changed Original file line number Diff line number Diff line change @@ -29,30 +29,36 @@ fun configInterop(target: org.jetbrains.kotlin.gradle.plugin.mpp.KotlinNativeTar
2929}
3030
3131kotlin {
32- val knTargets = listOf (
33- macosX64(),
34- iosX64(),
35- iosArm64(),
36- iosArm32(),
37- watchosArm32(),
38- watchosArm64(),
39- watchosX86(),
40- watchosX64(),tvosArm64(),
41- tvosX64(),
42- mingwX64(" mingw" ) {
43- compilations.forEach {
44- it.kotlinOptions.freeCompilerArgs + = listOf (" -linker-options" , " -Lc:\\ msys64\\ mingw64\\ lib" )
32+ val knTargets = when {
33+ HostManager .hostIsMingw -> listOf (
34+ mingwX64(" mingw" ) {
35+ compilations.forEach {
36+ it.kotlinOptions.freeCompilerArgs + = listOf (" -linker-options" , " -Lc:\\ msys64\\ mingw64\\ lib" )
37+ }
4538 }
46- },
47- linuxX64 {
48- compilations.forEach {
49- it.kotlinOptions.freeCompilerArgs + = listOf (
50- " -linker-options" ,
51- " -lsqlite3 -L/usr/lib/x86_64-linux-gnu" // just /usr/lib for arch
52- )
39+ )
40+ HostManager .hostIsLinux -> listOf (
41+ linuxX64 {
42+ compilations.forEach {
43+ it.kotlinOptions.freeCompilerArgs + = listOf (
44+ " -linker-options" ,
45+ " -lsqlite3 -L/usr/lib/x86_64-linux-gnu" // just /usr/lib for arch
46+ )
47+ }
5348 }
54- }
55- )
49+ )
50+ else -> listOf (
51+ macosX64(),
52+ iosX64(),
53+ iosArm64(),
54+ iosArm32(),
55+ watchosArm32(),
56+ watchosArm64(),
57+ watchosX86(),
58+ tvosArm64(),
59+ tvosX64()
60+ )
61+ }
5662
5763 knTargets
5864 .forEach { target ->
You can’t perform that action at this time.
0 commit comments