[KLIB] Extract "ir_provider" manifest property name as a const val, p.2
This commit is contained in:
committed by
Space Team
parent
04998cff8a
commit
56bebeaf92
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user