[KLIB] Extract "ir_provider" manifest property name as a const val, p.2

This commit is contained in:
Dmitriy Dolovov
2023-06-16 15:17:02 +02:00
committed by Space Team
parent 04998cff8a
commit 56bebeaf92
4 changed files with 8 additions and 8 deletions
@@ -115,6 +115,9 @@ val KotlinLibrary.exportForwardDeclarations: List<String>
val KotlinLibrary.includedForwardDeclarations: List<String>
get() = manifestProperties.propertyList(KLIB_PROPERTY_INCLUDED_FORWARD_DECLARATIONS, escapeInQuotes = true)
val BaseKotlinLibrary.irProviderName: String?
get() = manifestProperties.getProperty(KLIB_PROPERTY_IR_PROVIDER)
val BaseKotlinLibrary.nativeTargets: List<String>
get() = manifestProperties.propertyList(KLIB_PROPERTY_NATIVE_TARGETS)
@@ -253,7 +253,7 @@ abstract class KotlinLibraryProperResolverWithAttributes<L : KotlinLibrary>(
return false
}
candidate.manifestProperties[KLIB_PROPERTY_IR_PROVIDER]?.let {
candidate.irProviderName?.let {
if (it !in knownIrProviders) {
logger.warning("skipping $candidatePath. The library requires unknown IR provider $it.")
return false