We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
enableOptimizer
1 parent 0e55988 commit ace58c0Copy full SHA for ace58c0
src/main/scala/ScalaModulePlugin.scala
@@ -46,7 +46,11 @@ object ScalaModulePlugin extends AutoPlugin {
46
)
47
48
/**
49
- * Enable `-opt:l:inline`, `-opt:l:project` or `-optimize`, depending on the scala version.
+ * Enable `-opt:l:inline`, `-opt:l:project` or `-optimize`, depending on the Scala version.
50
+ *
51
+ * Note that the optimizer is only enabled in CI and not during local development.
52
+ * Thus, for consistent results, release artifacts must only be built on CI --
53
+ * which is the expected norm for Scala modules, anyway.
54
*/
55
lazy val enableOptimizer: Setting[_] = Compile / compile / scalacOptions ++= {
56
if (insideCI.value) {
0 commit comments