Skip to content

Commit ace58c0

Browse files
committed
improve Scaladoc for enableOptimizer
1 parent 0e55988 commit ace58c0

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

src/main/scala/ScalaModulePlugin.scala

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,11 @@ object ScalaModulePlugin extends AutoPlugin {
4646
)
4747

4848
/**
49-
* Enable `-opt:l:inline`, `-opt:l:project` or `-optimize`, depending on the scala version.
49+
* 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.
5054
*/
5155
lazy val enableOptimizer: Setting[_] = Compile / compile / scalacOptions ++= {
5256
if (insideCI.value) {

0 commit comments

Comments
 (0)