Skip to content

Commit

Permalink
Merge pull request #90 from mdedetrich/add-inliner
Browse files Browse the repository at this point in the history
Add inliner
  • Loading branch information
mkurz authored Jan 27, 2024
2 parents c3aacc5 + 0328513 commit 742e5b4
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 @@ -59,6 +59,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 742e5b4

Please sign in to comment.