HMPP: Parameterize NativePlatform with KonanTarget
This commit is contained in:
+1
-1
@@ -93,7 +93,7 @@ private fun createFakeTopDownAnalyzerForNative(
|
||||
): LazyTopDownAnalyzer = createContainer("FakeTopDownAnalyzerForNative", NativePlatformAnalyzerServices) {
|
||||
configureModule(
|
||||
moduleContext,
|
||||
NativePlatforms.defaultNativePlatform,
|
||||
NativePlatforms.unspecifiedNativePlatform,
|
||||
NativePlatformAnalyzerServices,
|
||||
bindingTrace,
|
||||
languageVersionSettings
|
||||
|
||||
@@ -511,7 +511,7 @@ abstract class BaseDiagnosticsTest : KotlinMultiFileTestWithJava<TestModule, Tes
|
||||
nameSuffix == "COMMON" -> CommonPlatforms.defaultCommonPlatform
|
||||
nameSuffix == "JVM" -> JvmPlatforms.unspecifiedJvmPlatform // TODO(dsavvinov): determine JvmTarget precisely
|
||||
nameSuffix == "JS" -> JsPlatforms.defaultJsPlatform
|
||||
nameSuffix == "NATIVE" -> NativePlatforms.defaultNativePlatform
|
||||
nameSuffix == "NATIVE" -> NativePlatforms.unspecifiedNativePlatform
|
||||
nameSuffix.isEmpty() -> null // TODO(dsavvinov): this leads to 'null'-platform in ModuleDescriptor
|
||||
else -> throw IllegalStateException("Can't determine platform by name $nameSuffix")
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user