File tree Expand file tree Collapse file tree 1 file changed +9
-0
lines changed Expand file tree Collapse file tree 1 file changed +9
-0
lines changed Original file line number Diff line number Diff line change 16
16
import co.touchlab.cklib.gradle.CompileToBitcode.Language.C
17
17
import co.touchlab.cklib.gradle.CompileToBitcodeExtension
18
18
import org.jetbrains.kotlin.gradle.internal.ensureParentDirsCreated
19
+ import org.jetbrains.kotlin.gradle.plugin.mpp.KotlinNativeTarget
19
20
import org.jetbrains.kotlin.gradle.tasks.KotlinJvmCompile
20
21
import org.jetbrains.kotlin.konan.target.Architecture.*
21
22
import org.jetbrains.kotlin.konan.target.Family.*
@@ -114,6 +115,14 @@ kmpConfiguration {
114
115
config.kotlinVersion = libs.versions.gradle.kotlin.get()
115
116
createSqlite3mc()
116
117
}
118
+
119
+ targets.filterIsInstance<KotlinNativeTarget >().forEach { target ->
120
+ if (! target.konanTarget.family.isAppleFamily) return @forEach
121
+
122
+ target.compilations[" main" ].kotlinOptions {
123
+ freeCompilerArgs + = listOf (" -linker-options" , " -framework Security" )
124
+ }
125
+ }
117
126
}
118
127
}
119
128
}
You can’t perform that action at this time.
0 commit comments