Closed counter2015 closed 6 days ago
Current website demo gif shows how to run scala native program by scala-cli link: https://scala-cli.virtuslab.org/img/gifs/universal_tool.gif
Scala Native now support for Scala 3.x https://mvnrepository.com/artifact/org.scala-native/nscplugin
$ scala-cli --native -S 2.13.6 native.scala Downloading compiler plugin org.scala-native:::nscplugin:0.5.5 [error] Error downloading org.scala-native:nscplugin_2.13.6:0.5.5 not found: /home/counter/.cache/scalacli/local-repo/1.5.0/org.scala-native/nscplugin_2.13.6/0.5.5/ivys/ivy.xml No fallback URL found not found: /home/counter/.ivy2/local/org.scala-native/nscplugin_2.13.6/0.5.5/ivys/ivy.xml not found: https://repo1.maven.org/maven2/org/scala-native/nscplugin_2.13.6/0.5.5/nscplugin_2.13.6-0.5.5.pom
So there is no need to specify version to 2.13.x
$ scala-cli --native native.scala Compiling project (Scala 3.5.0, Scala Native 0.5.5) Compiled project (Scala 3.5.0, Scala Native 0.5.5) [info] Linking (multithreadingEnabled=true, disable if not used) (3764 ms) [info] Discovered 944 classes and 5700 methods after classloading [info] Loaded 0 service provider(s) for 1 referenced service(s): [info] |------------------------------------------------------------------| [info] | Service | Service Provider | Status | [info] |------------------------------------------------------------------| [info] | java.nio.charset.spi.CharsetProvider | --- | NoProviders | [info] |------------------------------------------------------------------| [info] Checking intermediate code (quick) (235 ms) [info] Multithreading was not explicitly enabled - initial class loading has not detected any usage of system threads. Multithreading support will be disabled to improve performance. [info] Linking (multithreadingEnabled=false) (1748 ms) [info] Discovered 816 classes and 4784 methods after classloading [info] Loaded 0 service provider(s) for 1 referenced service(s): [info] |------------------------------------------------------------------| [info] | Service | Service Provider | Status | [info] |------------------------------------------------------------------| [info] | java.nio.charset.spi.CharsetProvider | --- | NoProviders | [info] |------------------------------------------------------------------| [info] Checking intermediate code (quick) (55 ms) [info] Discovered 716 classes and 3247 methods after optimization [info] Optimizing (debug mode) (4893 ms) [info] Produced 2 LLVM IR files [info] Generating intermediate code (11340 ms) [info] Compiling to native code (7921 ms) [info] Linking with [pthread, dl] [info] Linking native code (immix gc, none lto) (142 ms) [info] Postprocessing (0 ms) Max path length in this OS is 255
Current website demo gif shows how to run scala native program by scala-cli link: https://scala-cli.virtuslab.org/img/gifs/universal_tool.gif
Scala Native now support for Scala 3.x https://mvnrepository.com/artifact/org.scala-native/nscplugin
So there is no need to specify version to 2.13.x