Skip to content

Commit 742e5b4

Browse files
authored
Merge pull request #90 from mdedetrich/add-inliner
Add inliner
2 parents c3aacc5 + 0328513 commit 742e5b4

File tree

1 file changed

+12
-0
lines changed

1 file changed

+12
-0
lines changed

build.sbt

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -59,6 +59,18 @@ scalacOptions ++= Seq(
5959
"-encoding",
6060
"UTF-8"
6161
)
62+
63+
scalacOptions ++= {
64+
if (insideCI.value) {
65+
val log = sLog.value
66+
log.info("Running in CI, enabling Scala2 optimizer")
67+
Seq(
68+
"-opt-inline-from:<sources>",
69+
"-opt:l:inline"
70+
)
71+
} else Nil
72+
}
73+
6274
scriptedLaunchOpts += "-Xmx1024m"
6375
scriptedLaunchOpts ++= Seq("-Dplugin.version=" + version.value)
6476
scriptedLaunchOpts += "-debug"

0 commit comments

Comments
 (0)