[native] Remove code support for experimental KonanTargets

ZEPHYR was the first and the last experimental KonanTarget.
As ZEPHYR is now entirely removed from the codebase, the respective code
can be dropped

^KT-64517
This commit is contained in:
Dmitry Savvinov
2024-01-16 14:51:08 +01:00
committed by Space Team
parent 47546ece27
commit b19ad2505c
7 changed files with 22 additions and 87 deletions
@@ -11,7 +11,6 @@ import org.jetbrains.kotlin.compilerRunner.getKonanCacheKind
import org.jetbrains.kotlin.compilerRunner.konanDataDir
import org.jetbrains.kotlin.compilerRunner.konanHome
import org.jetbrains.kotlin.gradle.dsl.NativeCacheKind
import org.jetbrains.kotlin.gradle.plugin.PropertiesProvider
import org.jetbrains.kotlin.gradle.targets.native.KonanPropertiesBuildService
import org.jetbrains.kotlin.gradle.tasks.CacheBuilder
import org.jetbrains.kotlin.gradle.tasks.addArg
@@ -127,7 +126,7 @@ internal class PlatformLibrariesGenerator(val project: Project, val konanTarget:
}
fun generatePlatformLibsIfNeeded(): Unit = with(project) {
if (!HostManager(distribution).isEnabled(konanTarget)) {
if (!HostManager().isEnabled(konanTarget)) {
// We cannot generate libs on a machine that doesn't support the requested target.
return
}
@@ -221,4 +220,4 @@ internal class PlatformLibrariesGenerator(val project: Project, val konanTarget:
companion object {
private const val GENERATED_LIBS_PROPERTY_NAME = "org.jetbrains.kotlin.native.platform.libs.info"
}
}
}