[K/N] Fix KT-55653
This commit is contained in:
committed by
Space Team
parent
3ade4fbedc
commit
c3a250e57a
+3
-1
@@ -504,6 +504,8 @@ internal fun prepareTool(target: String?, flavor: KotlinPlatform, runFromDaemon:
|
||||
if (!runFromDaemon) it.prepare() // Daemon prepares the tool himself. (See KonanToolRunner.kt)
|
||||
}
|
||||
|
||||
internal val predefinedObjCClassesIncludingCategories: Set<String> by lazy { setOf("NSView") }
|
||||
|
||||
internal fun buildNativeLibrary(
|
||||
tool: ToolConfig,
|
||||
def: DefFile,
|
||||
@@ -568,7 +570,7 @@ internal fun buildNativeLibrary(
|
||||
|
||||
val headerExclusionPolicy = HeaderExclusionPolicyImpl(imports)
|
||||
|
||||
val objCClassesIncludingCategories = def.config.objcClassesIncludingCategories.toSet()
|
||||
val objCClassesIncludingCategories = def.config.objcClassesIncludingCategories.toSet() + predefinedObjCClassesIncludingCategories
|
||||
return NativeLibrary(
|
||||
includes = includes,
|
||||
additionalPreambleLines = compilation.additionalPreambleLines,
|
||||
|
||||
Reference in New Issue
Block a user