Is it the case that Kotlin/Native after 1.3.0 is n...
# kotlin-native
p
Is it the case that Kotlin/Native after 1.3.0 is now a part of kotlin-multiplatform and Gradle must be used to build an executable? Not that that is a bad thing, just more to learn before I can totally grok the moving pieces of a Kotlin/Native app.
g
Gradle is only build system that supports multiplatform and there is a lot of tooling involved, you can build manually I belive, but it would be really tedious to configure and support
p
Understood. My only goal in removing Gradle is for learning. Wouldn’t dream of not using Gradle for anything production related.
g
Why?
Anyway, if you don’t need MPP, just native, you can download native binaries and build without build system: https://github.com/JetBrains/kotlin/releases/tag/v1.3.0
p
This is what I downloaded. No kotlinc-native was to be found.
g
What exactly did you download?
This is kotlin-native binaries
p
kotlin-native-macos-1.3.0.zip if memory serves.
g
Sooo, what doesn’t work in this case?
Just unzip it, there is
kotlinc
in bin directory
Also, there is README about standalone compiler in repository and inside this distribution: https://github.com/JetBrains/kotlin-native/blob/master/DISTRO_README.md
p
I dowloaded the compiler for macos. I will now try the macos native tar.gz file you linked to. That could be the issue.
g
compiler for macos? do you mean
kotlin-compiler-1.3.0-release-macos-x64.zip
? yes, this is Kotlin without native support, just AOT version of Kotlin for JVM/JS
p
Yes, that was my mistake. Now it works for me. Thanks!
g
👍
m
Gradle and kotlin-multiplatform must be used only if you want IDE support in IntelliJ or CLion. If all you want is command-line compiler - just download latest release bundle from kotlin-native repository.
g
from kotlin-native repository
After 1.3 bundle available as part of Kotlin releases on Kotlin repo