Ruyi Li
12/03/2019, 1:26 PM> kotlinc -script .\p2.kts
error: invalid argument: -script
info: use -help for more information
Anyone know why this is happening? I'm on Windows and installed Kotlinc through the zip on the releases page, and when I run kotlinc -version
it outputs
> kotlinc -version
info: kotlinc-native 1.3.60 (JRE 9.0.1+11)
Kotlin/Native: 1.3.60
-script is not listed in the options specified in -help.Mike
12/03/2019, 1:50 PM-script
is an option.
info: kotlinc-jvm 1.3.61 (JRE 1.8.0_222-b10)
Ruyi Li
12/03/2019, 1:52 PMRuckus
12/03/2019, 2:35 PMkotlinc-jvm
compiles down to JVM byte code, kotlinc-native
compiles down to native machine code. (Or I guess to LLVM bit code which LLVM compiles to machine code, I'm not 100% sure on that one. Either way it ends up as native machine code that doesn't need any *VM to run.)Ruyi Li
12/03/2019, 4:56 PM