-
Notifications
You must be signed in to change notification settings - Fork 8
/
Copy pathscalac.sbt
17 lines (15 loc) · 1.13 KB
/
scalac.sbt
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
scalaVersion := "2.13.0"
scalacOptions in Compile ++= Seq(
"-deprecation", // Emit warning and location for usages of deprecated APIs.
"-encoding", "UTF-8", // Specify character encoding used by source files.
"-target:jvm-1.8", // Target platform for object files. All JVM 1.5 - 1.7 targets are deprecated. (jvm-1.5,jvm-1.6,jvm-1.7,[jvm-1.8])
"-unchecked", // Enable additional warnings where generated code depends on assumptions.
"-Yrangepos", // Use range positions for syntax trees.
"-Ywarn-numeric-widen", // Warn when numerics are widened.
"-Ywarn-value-discard", // Warn when non-Unit expression results are unused.
"-opt:l:method,inline", // Enable optimizations, `-opt:help' to list choices.
"-opt-inline-from:io.**", // Patterns for classfile names from which to allow inlining, `help` for details.
"-opt-warnings:_", // Enable optimizer warnings
"-Ygen-asmp", "target/asmp", // Generate a parallel output directory of .asmp files (ie ASM Textifier output).
)
scalacOptions in Test -= "-opt:l:method,inline" // do not inline tests