From 0328513290968ff039094cb00c8b27c19945095e Mon Sep 17 00:00:00 2001 From: Matthew de Detrich Date: Mon, 16 Oct 2023 10:14:14 -0300 Subject: [PATCH] Add inliner --- build.sbt | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/build.sbt b/build.sbt index 5f3fa62..d1d39dd 100644 --- a/build.sbt +++ b/build.sbt @@ -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:", + "-opt:l:inline" + ) + } else Nil +} + scriptedLaunchOpts += "-Xmx1024m" scriptedLaunchOpts ++= Seq("-Dplugin.version=" + version.value) scriptedLaunchOpts += "-debug"