Thanks to visit codestin.com
Credit goes to github.com

Skip to content
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
improve Scaladoc for enableOptimizer
  • Loading branch information
SethTisue committed Aug 14, 2024
commit ace58c039d003e86d7e605e2924b4dc04e483918
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
Loading