Skip to content

Commit

Permalink
Add inliner
Browse files Browse the repository at this point in the history
  • Loading branch information
mdedetrich committed Jan 27, 2024
1 parent 516f99a commit 0328513
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions build.sbt
Original file line number Diff line number Diff line change
Expand Up @@ -58,6 +58,18 @@ scalacOptions ++= Seq(
"-encoding",
"UTF-8"
)

scalacOptions ++= {
if (insideCI.value) {
val log = sLog.value
log.info("Running in CI, enabling Scala2 optimizer")
Seq(
"-opt-inline-from:<sources>",
"-opt:l:inline"
)
} else Nil
}

scriptedLaunchOpts += "-Xmx1024m"
scriptedLaunchOpts ++= Seq("-Dplugin.version=" + version.value)
scriptedLaunchOpts += "-debug"
Expand Down

0 comments on commit 0328513

Please sign in to comment.