Skip to content

Commit a10805e

Browse files
committed
Add -Xmax-inlines compiler flag
1 parent 4fe184d commit a10805e

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

lib/src/main/scala/org/typelevel/scalacoptions/ScalacOptions.scala

+5
Original file line numberDiff line numberDiff line change
@@ -207,6 +207,11 @@ private[scalacoptions] trait ScalacOptions {
207207
val async =
208208
advancedOption("async", version => version.isBetween(V2_13_3, V3_0_0))
209209

210+
/** Maximal number of successive inlines. Default: 32.
211+
*/
212+
def maxInlines(limit: Int) =
213+
advancedOption("max-inlines", List(limit.toString), version => version >= V3_0_0)
214+
210215
/** Enable recommended warnings.
211216
*/
212217
def lintOption(

0 commit comments

Comments
 (0)