diff --git a/build.sbt b/build.sbt index 23943c0..eaf21d2 100644 --- a/build.sbt +++ b/build.sbt @@ -188,3 +188,23 @@ def project(id: String, base: File): Project = { scalaVersion := scala212 ) } + +// compile settings +ThisBuild / scalacOptions ++= List( + "-unchecked", + "-deprecation", + "-language:_", + "-encoding", + "UTF-8" +) + +ThisBuild / scalacOptions ++= { + if (insideCI.value) { + val log = sLog.value + log.info("Running in CI, enabling Scala2 optimizer") + Seq( + "-opt-inline-from:", + "-opt:l:inline" + ) + } else Nil +}