Skip to content

Commit 1e8d73e

Browse files
committed
Add mingwX86 target
1 parent c482afa commit 1e8d73e

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

sqliter-driver/build.gradle.kts

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,7 @@ fun configInterop(target: org.jetbrains.kotlin.gradle.plugin.mpp.KotlinNativeTar
1414
val main by target.compilations.getting
1515
val sqlite3 by main.cinterops.creating {
1616
includeDirs("$projectDir/src/include")
17+
// extraOpts = listOf("-mode", "sourcecode")
1718
}
1819

1920
target.compilations.forEach { kotlinNativeCompilation ->
@@ -44,7 +45,8 @@ kotlin {
4445
iosSimulatorArm64(),
4546
watchosSimulatorArm64(),
4647
tvosSimulatorArm64(),
47-
mingwX64("mingw"),
48+
mingwX64(),
49+
mingwX86(),
4850
linuxX64()
4951
)
5052

@@ -82,6 +84,7 @@ kotlin {
8284
knTargets.forEach { target ->
8385
when {
8486
target.name.startsWith("mingw") -> {
87+
target.compilations.getByName("main").defaultSourceSet.dependsOn(mingwMain)
8588
target.compilations.getByName("test").defaultSourceSet.dependsOn(nativeCommonTest)
8689
}
8790
target.name.startsWith("linux") -> {

0 commit comments

Comments
 (0)