-
Notifications
You must be signed in to change notification settings - Fork 144
Update Scala Native to 0.5.1 #2862
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
Update Scala Native to 0.5.1 #2862
Conversation
d65d652
to
82c80ba
Compare
If any Scala CLI integration does not support Scala Native 0.5.x, the default Scala Native version will be downgraded to 0.4.17 now. scala-cli run --native -e 'println("Hello")' --toolkit default
# [warn] Scala Toolkit does not support Scala Native 0.5.1, 0.4.17 should be used instead.
# [warn] Scala Native default version 0.5.1 is not supported in this build. Using 0.4.17 instead.
# Compiling project (Scala 3.4.1, Scala Native 0.4.17)
# Compiled project (Scala 3.4.1, Scala Native 0.4.17)
# [info] Linking (933 ms)
# [info] Checking intermediate code (quick) (59 ms)
# [info] Discovered 743 classes and 4242 methods
# [info] Optimizing (debug mode) (771 ms)
# [info] Generating intermediate code (553 ms)
# [info] Produced 10 files
# [info] Compiling to native code (1941 ms)
# [info] Linking with [pthread, dl]
# [info] Total (4386 ms)
# Hello Mind that this only affect the default Scala Native version. scala-cli run --native -e 'println("Hello")' --toolkit default --native-version 0.5.1
# Downloading 4 dependencies and 2 internal dependencies
# [error] Error downloading org.scala-lang:toolkit_native0.5_3:0.2.1
# [error] not found: /Users/pchabelski/.ivy2/local/org.scala-lang/toolkit_native0.5_3/0.2.1/ivys/ivy.xml
# [error] not found: https://repo1.maven.org/maven2/org/scala-lang/toolkit_native0.5_3/0.2.1/toolkit_native0.5_3-0.2.1.pom
# [error] not found: /Users/pchabelski/Library/Caches/ScalaCli/local-repo/1.2.2-26-82c80b/org.scala-lang/toolkit_native0.5_3/0.2.1/ivys/ivy.xml
# [error] No fallback URL found
# [error] COMMAND_LINE Similarly, no warning would be printed when 0.4.17 is deliberately passed by the user as the native version. scala-cli run --native -e 'println("Hello")' --toolkit default --native-version 0.4.17
# Compiling project (Scala 3.4.1, Scala Native 0.4.17)
# Compiled project (Scala 3.4.1, Scala Native 0.4.17)
# [info] Linking (890 ms)
# [info] Checking intermediate code (quick) (65 ms)
# [info] Discovered 743 classes and 4242 methods
# [info] Optimizing (debug mode) (649 ms)
# [info] Generating intermediate code (643 ms)
# [info] Produced 10 files
# [info] Compiling to native code (1757 ms)
# [info] Linking with [pthread, dl]
# [info] Total (4123 ms)
# Hello Finally, if no troublesome dependencies are being passed, Scala Native 0.5.1 is now the default. scala-cli run --native -e 'println("Hello")'
# Compiling project (Scala 3.4.1, Scala Native 0.5.1)
# Compiled project (Scala 3.4.1, Scala Native 0.5.1)
# [info] Linking (multithreadingEnabled=true, disable if not used) (909 ms)
# [info] Discovered 882 classes and 5388 methods after classloading
# [info] Checking intermediate code (quick) (38 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) (311 ms)
# [info] Discovered 499 classes and 2501 methods after classloading
# [info] Checking intermediate code (quick) (10 ms)
# [info] Discovered 478 classes and 1916 methods after optimization
# [info] Optimizing (debug mode) (423 ms)
# [info] Produced 9 LLVM IR files
# [info] Generating intermediate code (442 ms)
# [info] Compiling to native code (1431 ms)
# [info] Linking with [pthread, dl]
# [info] Linking native code (immix gc, none lto) (64 ms)
# [info] Postprocessing (0 ms)
# [info] Total (3587 ms)
# Hello |
modules/options/src/main/scala/scala/build/options/ScalaNativeOptions.scala
Outdated
Show resolved
Hide resolved
β¦ Toolkit and/or Typelevel Toolkit
β¦ause of dependency limitations
82c80ba
to
f959111
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Super minor otherwise ok. Don't love the need for adding this error, but I guess there is no better way :/
About this PR
π¦ Updates
from
0.4.17
to0.5.1
π GitHub Release Notes - Version Diff
Usage
β Please merge!
I'll automatically update this PR to resolve conflicts as long as you don't change it yourself.
If you'd like to skip this version, you can just close this PR. If you have any feedback, just mention me in the comments below.
Configure Scala Steward for your repository with a
.scala-steward.conf
file.Have a fantastic day writing Scala!
π Files still referring to the old version number
The following files still refer to the old version number (0.4.17).
You might want to review and update them manually.
β Adjust future updates
Add this to your
.scala-steward.conf
file to ignore future updates of this dependency:Or, add this to slow down future updates of this dependency: