Revert simpleOsName in HostManager

Support old naming in simpleOsName.
Introduce new platformName method for the new archive naming.
This commit is contained in:
Pavel Punegov
2021-06-02 14:14:10 +03:00
parent 1f837134bb
commit 789799ac17
5 changed files with 13 additions and 7 deletions
@@ -52,7 +52,7 @@ class NativePlatformLibsIT : BaseGradleIT() {
private fun deleteInstalledCompilers() {
// Clean existing installation directories.
val osName = HostManager.simpleOsName()
val osName = HostManager.platformName()
val oldCompilerDir = DependencyDirectories.localKonanDir.resolve("kotlin-native-$osName-$oldCompilerVersion")
val currentCompilerDir = DependencyDirectories.localKonanDir.resolve("kotlin-native-$osName-$currentCompilerVersion")
@@ -45,7 +45,7 @@ class NativeCompilerDownloader(
get() = NativeDistributionTypeProvider(project).getDistributionType(compilerVersion)
private val simpleOsName: String
get() = HostManager.simpleOsName()
get() = HostManager.platformName()
private val dependencyName: String
get() {