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 CLI flag & directive for clang/LLVM target triples when using Scala Native #3424

Open
wants to merge 8 commits into
base: main
Choose a base branch
from
Prev Previous commit
Next Next commit
Updated reference docs
bynux-gh committed Jan 15, 2025
commit 6244a52ede7fdcdb20d85839a03ee9fa13724781
4 changes: 4 additions & 0 deletions website/docs/reference/cli-options.md
Original file line number Diff line number Diff line change
@@ -1434,6 +1434,10 @@ Link-time optimisation mode (none by default): none, full, thin

Set the Scala Native garbage collector (immix by default): immix, commix, boehm, none

### `--native-target-triple`

Set a target triple to which Scala Native can cross-compile

### `--native-clang`

Path to the Clang command
2 changes: 2 additions & 0 deletions website/docs/reference/directives.md
Original file line number Diff line number Diff line change
@@ -349,6 +349,8 @@ Add Scala Native options

`//> using nativeLinking` _value1_ _value2_ …

`//> using nativeTargetTriple` _value_

`//> using nativeClang` _value_

`//> using nativeClangPP` _value_
6 changes: 6 additions & 0 deletions website/docs/reference/scala-command/cli-options.md
Original file line number Diff line number Diff line change
@@ -874,6 +874,12 @@ Link-time optimisation mode (none by default): none, full, thin

Set the Scala Native garbage collector (immix by default): immix, commix, boehm, none

### `--native-target-triple`

`SHOULD have` per Scala Runner specification

Set a target triple to which Scala Native can cross-compile

### `--native-clang`

`IMPLEMENTATION specific` per Scala Runner specification
2 changes: 2 additions & 0 deletions website/docs/reference/scala-command/directives.md
Original file line number Diff line number Diff line change
@@ -233,6 +233,8 @@ Add Scala Native options

`//> using nativeLto` _value_

`//> using nativeTargetTriple` _value_

`//> using nativeVersion` _value_

`//> using nativeCompile` _value1_ _value2_ …