Skip to content

Updates and remove redundant settings #101

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

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion project/build.properties
Original file line number Diff line number Diff line change
@@ -1 +1 @@
sbt.version = 1.10.6
sbt.version = 1.10.7
8 changes: 4 additions & 4 deletions src/main/g8/build.sbt
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
scalaVersion := "3.3.3" // A Long Term Support version.
scalaVersion := "3.3.5" // A Long Term Support version.

enablePlugins(ScalaNativePlugin)

Expand All @@ -10,7 +10,7 @@ import scala.scalanative.build._

// defaults set with common options shown
nativeConfig ~= { c =>
c.withLTO(LTO.none) // thin
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

These were here to help people with these basic settings (using the defaults) with some suggestions in the comments for settings you might want to select - maybe the comments where not explained well but that was deliberate as the first thing people asked for was how to optimize and such.

.withMode(Mode.debug) // releaseFast
.withGC(GC.immix) // commix
c.withSourceLevelDebuggingConfig(
SourceLevelDebuggingConfig.enabled
) // enable rich stacktraces
}
2 changes: 1 addition & 1 deletion src/main/g8/project/build.properties
Original file line number Diff line number Diff line change
@@ -1 +1 @@
sbt.version = 1.10.6
sbt.version = 1.10.7
2 changes: 1 addition & 1 deletion src/main/g8/project/plugins.sbt
Original file line number Diff line number Diff line change
@@ -1 +1 @@
addSbtPlugin("org.scala-native" % "sbt-scala-native" % "0.5.1")
addSbtPlugin("org.scala-native" % "sbt-scala-native" % "0.5.6")
5 changes: 1 addition & 4 deletions src/main/g8/src/main/scala/Main.scala
Original file line number Diff line number Diff line change
@@ -1,4 +1 @@
object Main {
def main(args: Array[String]): Unit =
println("Hello, world!")
}
@main def hello = println("Hello world from Scala Native!")