This non-official application makes it simpler to update the Kotlin/Native compiler by building based off your Kotlin Java compiler version and skipping all the tedious stuff.
You need to install Java Runtime Environment and
the Kotlin Compiler (check if you can run kotlinc-jvm)
to run this program.
Install from GitHub:
cd ~
git clone https://github.com/joshua-kent/native-build.gitRun program:
cd native-build\out\artifacts\native_build_jar
java -jar native-build.jarIf you don't want the source code, you can now
run this to remove the repository that was just
installed (the program will be installed in
C:\kotlin-native and added to path anyway):
cd ~
ri native-build -recurse -force
If you have already run the program using the
instructions above, it will now be copied into
C:\kotlin-native and added to path via a batch
file. This means that to run again, you can simply
use:
native-buildIn the future, functionality may be added to run
commands such as native-build -update to update
the utility itself.