Skip to content

Commit b85f4cb

Browse files
authored
update: kotlin native instructions (#4964)
1 parent 9feae52 commit b85f4cb

File tree

2 files changed

+10
-2
lines changed

2 files changed

+10
-2
lines changed

docs/topics/command-line.md

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -86,6 +86,10 @@ library in it.
8686
java -jar hello.jar
8787
```
8888

89+
> To compile a Kotlin/Native application, use the [Kotlin/Native compiler](native-get-started.md#using-the-command-line-compiler).
90+
>
91+
{style="note"}
92+
8993
## Compile a library
9094

9195
If you're developing a library to be used by other Kotlin applications, you can build the **.jar** file without including
@@ -106,6 +110,10 @@ kotlin -classpath hello.jar HelloKt
106110

107111
`HelloKt` is the main class name that the Kotlin compiler generates for the file named `hello.kt`.
108112

113+
> To compile a Kotlin/Native library, use the [Kotlin/Native compiler](native-libraries.md#kotlin-compiler-specifics).
114+
>
115+
{style="note"}
116+
109117
## Run the REPL
110118

111119
Run the compiler with the [`-Xrepl` compiler option](compiler-reference.md#xrepl) to have an interactive shell. In this shell, you can type any valid Kotlin code

docs/topics/native/native-get-started.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -311,9 +311,9 @@ In this section, you'll learn how to create a Kotlin/Native application using th
311311

312312
To install the compiler:
313313

314-
1. Go to the Kotlin's [GitHub releases](%kotlinLatestUrl%) page.
314+
1. Go to the Kotlin's [GitHub releases](%kotlinLatestUrl%) page and scroll down to the **Assets** section.
315315
2. Look for a file with `kotlin-native` in the name and download one that is suitable for your operating system,
316-
for example `kotlin-native-prebuilt-linux-x86_64-2.0.21.tar.gz`.
316+
for example `kotlin-native-prebuilt-linux-x86_64-%kotlinVersion%.tar.gz`.
317317
3. Unpack the archive to a directory of your choice.
318318
4. Open your shell profile and add the path to the compiler's `/bin` directory to the `PATH` environment variable:
319319

0 commit comments

Comments
 (0)