Skip to content

Commit 56c6a61

Browse files
author
Ben Asher
committed
Only link sqlite in tests
1 parent 8e90bba commit 56c6a61

File tree

1 file changed

+4
-12
lines changed

1 file changed

+4
-12
lines changed

SQLiter/build.gradle

Lines changed: 4 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -31,37 +31,29 @@ kotlin {
3131
// fromPreset(presets.macosX64, 'nativeCommon')
3232

3333
fromPreset(presets.macosX64, 'macos'){
34-
compilations.each {
35-
it.extraOpts("-linker-options", "-lsqlite3")
36-
}
3734
compilations.test {
35+
it.extraOpts("-linker-options", "-lsqlite3")
3836
it.extraOpts("-native-library", "../KotlinCpp/bcdist/macos_x64/tlruntime.bc")
3937
}
4038
}
4139

4240
fromPreset(presets.iosX64, 'iosX64'){
43-
compilations.each {
44-
it.extraOpts("-linker-options", "-lsqlite3")
45-
}
4641
compilations.test {
42+
it.extraOpts("-linker-options", "-lsqlite3")
4743
it.extraOpts("-native-library", "../KotlinCpp/bcdist/ios_x64/tlruntime.bc")
4844
}
4945
}
5046

5147
fromPreset(presets.iosArm64, 'iosArm64'){
52-
compilations.each {
53-
it.extraOpts("-linker-options", "-lsqlite3")
54-
}
5548
compilations.test {
49+
it.extraOpts("-linker-options", "-lsqlite3")
5650
it.extraOpts("-native-library", "../KotlinCpp/bcdist/ios_arm64/tlruntime.bc")
5751
}
5852
}
5953

6054
fromPreset(presets.iosArm32, 'iosArm32'){
61-
compilations.each {
62-
it.extraOpts("-linker-options", "-lsqlite3")
63-
}
6455
compilations.test {
56+
it.extraOpts("-linker-options", "-lsqlite3")
6557
it.extraOpts("-native-library", "../KotlinCpp/bcdist/ios_arm32/tlruntime.bc")
6658
}
6759
}

0 commit comments

Comments
 (0)