Import an initial version created by sbt new scala-native/scala-native.g8

This commit is contained in:
Jarek Sacha 2023-05-15 10:55:06 -04:00
commit 4f7829eea8
No known key found for this signature in database
GPG key ID: F29625CE62288163
6 changed files with 28 additions and 0 deletions

4
.gitignore vendored Normal file
View file

@ -0,0 +1,4 @@
.bsp/
.idea/
target/

2
.scalafmt.conf Normal file
View file

@ -0,0 +1,2 @@
version = "3.7.3"
runner.dialect = scala3

16
build.sbt Normal file
View file

@ -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
}

1
project/build.properties Normal file
View file

@ -0,0 +1 @@
sbt.version = 1.8.2

1
project/plugins.sbt Normal file
View file

@ -0,0 +1 @@
addSbtPlugin("org.scala-native" % "sbt-scala-native" % "0.4.10")

View file

@ -0,0 +1,4 @@
object Main {
def main(args: Array[String]): Unit =
println("Hello, world!")
}