Slide 96
Slide 96 text
Hello world in Scala Native
‣ Settings for Scala version, linkage option, compile option, etc.
// build.sbt
lazy val commonSettings = Seq(
scalaVersion := "2.11.12",
nativeLinkingOptions ++= Seq("-static-libstdc++", "-L/lib/"),
nativeGC := "immix", // default is Boehm GC
nativeCompileOptions := Seq("-O3")
)
lazy val hello = (project in file("hello"))
.settings(
commonSettings,
libraryDependencies ++= Seq(
"com.softwaremill.sttp" %%% "core" % "1.5.11",
"io.argonaut" % "argonaut_native0.3_2.11" % "6.2.2"
)
).enablePlugins(ScalaNativePlugin)
4DMBMBόʔδϣϯϦϯέʔδɺίϯύΠϧͷΦϓγϣϯΛઃఆ