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

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
}