File tree Expand file tree Collapse file tree 1 file changed +3
-18
lines changed
Expand file tree Collapse file tree 1 file changed +3
-18
lines changed Original file line number Diff line number Diff line change @@ -20,7 +20,7 @@ fun configInterop(target: org.jetbrains.kotlin.gradle.plugin.mpp.KotlinNativeTar
2020 kotlinNativeCompilation.kotlinOptions.freeCompilerArgs + = when {
2121 HostManager .hostIsLinux -> listOf (
2222 " -linker-options" ,
23- " -lsqlite3 -L/usr/lib/x86_64-linux-gnu" // just / usr/lib for arch
23+ " -lsqlite3 -L/usr/lib/x86_64-linux-gnu -L/ usr/lib"
2424 )
2525 HostManager .hostIsMingw -> listOf (" -linker-options" , " -lsqlite3 -Lc:\\ msys64\\ mingw64\\ lib" )
2626 else -> listOf (" -linker-options" , " -lsqlite3" )
@@ -30,23 +30,8 @@ fun configInterop(target: org.jetbrains.kotlin.gradle.plugin.mpp.KotlinNativeTar
3030
3131kotlin {
3232 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- }
38- }
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- }
48- }
49- )
33+ HostManager .hostIsMingw -> listOf (mingwX64(" mingw" ))
34+ HostManager .hostIsLinux -> listOf (linuxX64())
5035 else -> listOf (
5136 macosX64(),
5237 iosX64(),
You can’t perform that action at this time.
0 commit comments