Skip to content

Commit

Permalink
Add -Xmax-inlines compiler flag
Browse files Browse the repository at this point in the history
  • Loading branch information
joan38 committed May 31, 2024
1 parent 4fe184d commit e4b2ed5
Showing 1 changed file with 5 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -207,6 +207,11 @@ private[scalacoptions] trait ScalacOptions {
val async =
advancedOption("async", version => version.isBetween(V2_13_3, V3_0_0))

/** Maximal number of successive inlines. Default: 32.
*/
def maxInlines(limit: Int) =
advancedOption("max-inlines", List(limit.toString), version => version >= V3_0_0)

/** Enable recommended warnings.
*/
def lintOption(
Expand Down

0 comments on commit e4b2ed5

Please sign in to comment.