Remove kotlinc K/N scripts because they clash with real (K/JVM) kotlinc

These scripts were deprecated in 1.5.0.
This commit is contained in:
Svyatoslav Scherbina
2022-12-20 17:47:06 +01:00
committed by Space Team
parent d3549c2c5b
commit 399ea1092e
3 changed files with 0 additions and 55 deletions
@@ -17,25 +17,7 @@ private fun mainImpl(args: Array<String>, runFromDaemon: Boolean, konancMain: (A
when (utilityName) {
"konanc" ->
konancMain(utilityArgs)
"kotlinc" -> {
println("""
NOTE: you are running "kotlinc" CLI tool from Kotlin/Native distribution,
it runs Kotlin/Native compiler that produces native binaries from Kotlin code.
If your intention was to compile Kotlin code to JVM bytecode instead, then you
need to use "kotlinc" from the main Kotlin distribution (e.g. it can be
downloaded as kotlin-compiler-X.Y.ZZ.zip archive from
https://github.com/JetBrains/kotlin/releases/latest, or installed using various
package managers).
WARNING: if your intention was to run Kotlin/Native compiler, then please use
"kotlinc-native" CLI tool instead of "kotlinc". "kotlinc" tool will be removed
from Kotlin/Native distribution, so it will stop clashing with "kotlinc" from
the main Kotlin distribution.
""".trimIndent())
konancMain(utilityArgs)
}
"cinterop" -> {
val konancArgs = invokeInterop("native", utilityArgs, runFromDaemon)
konancArgs?.let { konancMain(it) }