[K/N] Fix platform libraries in K1 native diagnostic tests

K1 setup for diagnostic tests was not able to use
platform libraries. This is required for ObjCSignatureOverride
testing.

We need to test it in both K2 and K1 to make IDE experience better.
This commit is contained in:
Pavel Kunyavskiy
2024-01-18 12:54:48 +01:00
committed by Space Team
parent d100a07981
commit 77eee0d3fc
@@ -281,7 +281,8 @@ class ClassicFrontendFacade(
): List<ModuleDescriptor> {
val resolvedLibraries = CommonKLibResolver.resolve(
names,
configuration.getLogger(treatWarningsAsErrors = true)
configuration.getLogger(treatWarningsAsErrors = true),
knownIrProviders = listOf("kotlin.native.cinterop"), // FIXME use KonanLibraryProperResolver instead, as in production.
).getFullResolvedList()
var builtInsModule: KotlinBuiltIns? = null