[KLIB] Extract "ir_provider" manifest property name as a const val

This commit is contained in:
Dmitriy Dolovov
2023-06-13 11:29:07 +02:00
committed by Space Team
parent b1faee5ec6
commit 72525a22a6
5 changed files with 8 additions and 4 deletions
@@ -27,6 +27,7 @@ const val KLIB_PROPERTY_CONTAINS_ERROR_CODE = "contains_error_code"
const val KLIB_PROPERTY_INTEROP = "interop"
const val KLIB_PROPERTY_EXPORT_FORWARD_DECLARATIONS = "exportForwardDeclarations"
const val KLIB_PROPERTY_INCLUDED_FORWARD_DECLARATIONS = "includedForwardDeclarations"
const val KLIB_PROPERTY_IR_PROVIDER = "ir_provider"
/**
* Copy-pasted to `kotlin-native/build-tools/src/main/kotlin/org/jetbrains/kotlin/Utils.kt`
@@ -253,7 +253,7 @@ abstract class KotlinLibraryProperResolverWithAttributes<L : KotlinLibrary>(
return false
}
candidate.manifestProperties["ir_provider"]?.let {
candidate.manifestProperties[KLIB_PROPERTY_IR_PROVIDER]?.let {
if (it !in knownIrProviders) {
logger.warning("skipping $candidatePath. The library requires unknown IR provider $it.")
return false