Skip to content

Commit

Permalink
improve Scaladoc for enableOptimizer
Browse files Browse the repository at this point in the history
  • Loading branch information
SethTisue committed Aug 14, 2024
1 parent 0e55988 commit ace58c0
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion src/main/scala/ScalaModulePlugin.scala
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,11 @@ object ScalaModulePlugin extends AutoPlugin {
)

/**
* 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.
*
* Note that the optimizer is only enabled in CI and not during local development.
* Thus, for consistent results, release artifacts must only be built on CI --
* which is the expected norm for Scala modules, anyway.
*/
lazy val enableOptimizer: Setting[_] = Compile / compile / scalacOptions ++= {
if (insideCI.value) {
Expand Down

0 comments on commit ace58c0

Please sign in to comment.