commit 4f7829eea838160f9cbcd9dcbb40e66dc41c46ea Author: Jarek Sacha Date: Mon May 15 10:55:06 2023 -0400 Import an initial version created by `sbt new scala-native/scala-native.g8` diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..97be7d7 --- /dev/null +++ b/.gitignore @@ -0,0 +1,4 @@ +.bsp/ +.idea/ +target/ + diff --git a/.scalafmt.conf b/.scalafmt.conf new file mode 100644 index 0000000..422baeb --- /dev/null +++ b/.scalafmt.conf @@ -0,0 +1,2 @@ +version = "3.7.3" +runner.dialect = scala3 diff --git a/build.sbt b/build.sbt new file mode 100644 index 0000000..2f9b4e6 --- /dev/null +++ b/build.sbt @@ -0,0 +1,16 @@ +scalaVersion := "3.2.2" + +enablePlugins(ScalaNativePlugin) + +// set to Debug for compilation details (Info is default) +logLevel := Level.Info + +// import to add Scala Native options +import scala.scalanative.build._ + +// defaults set with common options shown +nativeConfig ~= { c => + c.withLTO(LTO.none) // thin + .withMode(Mode.debug) // releaseFast + .withGC(GC.immix) // commix +} diff --git a/project/build.properties b/project/build.properties new file mode 100644 index 0000000..f344c14 --- /dev/null +++ b/project/build.properties @@ -0,0 +1 @@ +sbt.version = 1.8.2 diff --git a/project/plugins.sbt b/project/plugins.sbt new file mode 100644 index 0000000..ef0f7a0 --- /dev/null +++ b/project/plugins.sbt @@ -0,0 +1 @@ +addSbtPlugin("org.scala-native" % "sbt-scala-native" % "0.4.10") diff --git a/src/main/scala/Main.scala b/src/main/scala/Main.scala new file mode 100644 index 0000000..399e5f3 --- /dev/null +++ b/src/main/scala/Main.scala @@ -0,0 +1,4 @@ +object Main { + def main(args: Array[String]): Unit = + println("Hello, world!") +}