Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add directive examples in Scala Native docs #2774

Merged
merged 2 commits into from
Mar 6, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
7 changes: 7 additions & 0 deletions website/docs/guides/advanced/scala-native.md
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,13 @@ A Scala Native version can be set by passing `--native-version` with an argument
scala-cli Test.scala --native --native-version 0.4.3
```

These can also be set in a file, or in a project (in your [`project.scala`](https://scala-cli.virtuslab.org/docs/reference/root-dir/) file) by [`using`](https://scala-cli.virtuslab.org/docs/reference/scala-command/directives/#platform) [directives](https://scala-cli.virtuslab.org/docs/reference/scala-command/directives/#scala-native-options):

```scala
//> using platform native
//> using nativeVersion 0.4.3
```

Platform compatibility and supported Scala language versions depend on this version.
It is recommended to use the newest stable version.

Expand Down