[Native] Use library paths instead of library names in K/N build infra

Use library paths instead of library names in K/N build infra when
passing a library through `-library` compiler argument.

^KT-61098
This commit is contained in:
Dmitriy Dolovov
2023-10-27 16:42:29 +02:00
committed by Space Team
parent e7b8f3ecde
commit c3da16a1d8
6 changed files with 14 additions and 41 deletions
+1 -1
View File
@@ -67,7 +67,7 @@ konanTargetList.forEach { target ->
noEndorsedLibs(true)
noPack(true)
libraries {
klibs(df.config.depends.map { "${fileNamePrefix}${it}" })
klibFiles(df.config.depends.map { "$konanHome/klib/platform/$targetName/${fileNamePrefix}${it}" })
}
extraOpts("-Xpurge-user-libs", "-Xshort-module-name", df.name, "-Xdisable-experimental-annotation")
compilerOpts("-fmodules-cache-path=${project.buildDir}/clangModulesCache")