[K/N][build] Make kotlin-native shared be included subproject

This commit is contained in:
Pavel Punegov
2023-02-02 21:01:35 +01:00
committed by Space Team
parent 395e3e0f81
commit 8938d5cc79
5 changed files with 59 additions and 19 deletions
@@ -73,9 +73,11 @@ open class KonanCacheTask: DefaultTask() {
@TaskAction
fun compile() {
check(klibUniqName == readKlibUniqNameFromManifest()) {
"klibUniqName mismatch: configured '$klibUniqName', resolved '${readKlibUniqNameFromManifest()}'"
}
// This code uses bootstrap version of util-klib and fails due to the older default ABI than library being used
// A possible solution is to read it manually from manifest file or this check should be done bu the compiler itself
// check(klibUniqName == readKlibUniqNameFromManifest()) {
// "klibUniqName mismatch: configured '$klibUniqName', resolved '${readKlibUniqNameFromManifest()}'"
// }
// Compiler doesn't create a cache if the cacheFile already exists. So we need to remove it manually.
if (cacheFile.exists()) {