[Gradle][Native][Cache] Don't skip metadata-based interop libraries

`resolveSingleFileKlib` by default doesn't support klibs with
non-default ir providers. In case of cache generation for native interop
libraries we need to override this behavior because they have
ir_provider=kotlin.native.cinterop.
This commit is contained in:
Sergey Bogolepov
2020-03-11 21:08:18 +07:00
parent c0b15b1768
commit e919e7b79a
3 changed files with 41 additions and 9 deletions

View File

@@ -13,6 +13,7 @@ const val KONAN_DISTRIBUTION_KLIB_DIR = "klib"
const val KONAN_DISTRIBUTION_COMMON_LIBS_DIR = "common"
const val KONAN_DISTRIBUTION_PLATFORM_LIBS_DIR = "platform"
const val KONAN_DISTRIBUTION_COMMONIZED_LIBS_DIR = "commonized"
const val KLIB_INTEROP_IR_PROVIDER_IDENTIFIER = "kotlin.native.cinterop"
const val KONAN_DISTRIBUTION_SOURCES_DIR = "sources"