Skip to content

Commit a4667eb

Browse files
committed
Cleanup
1 parent 1bef315 commit a4667eb

File tree

1 file changed

+3
-18
lines changed

1 file changed

+3
-18
lines changed

sqliter-driver/build.gradle.kts

Lines changed: 3 additions & 18 deletions
Original file line numberDiff line numberDiff 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

3131
kotlin {
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(),

0 commit comments

Comments
 (0)