Search code examples
scala-native

How do I set the compilation mode of scala-native to 'release'?


The scala-native site says there is a faster executable option, but it doesn't state how to set it in SBT.


Solution

  • You can add nativeMode := "release" to your build.sbt

    Other options are listed here: https://www.scala-native.org/en/v0.3.9-docs/user/sbt.html#sbt-settings-and-tasks