Scala Native works with Scala
2.12.x. Scripts are unavailable for Scala
Scala Native requires the LLVM toolchain - see requirements on Scala Native website.
Enable Scala Native support by passing
--native to Scala CLI, such as:
scala-cli Test.scala --native
A Scala Native version can be set by passing
--native-version with an argument:
scala-cli Test.scala --native --native-version 0.4.3
Platform compatibility and supported Scala language versions depend on this version.
It is recommended to use the newest stable version.
This section is currently a work in progress, but here are some initial notes:
- Beware platform dependencies
packageshould all work