diff --git a/project/Build.scala b/project/Build.scala index 4a15546e2000..55d7242c8ec1 100644 --- a/project/Build.scala +++ b/project/Build.scala @@ -718,6 +718,9 @@ object Build { TestFrameworks.JUnit, "--exclude-categories=dotty.BootstrappedOnlyTests", ), + // increase stack size for non-bootstrapped compiler, because some code + // is only tail-recursive after bootstrap + javaOptions in Test += "-Xss2m" ) lazy val bootstrapedDottyCompilerSettings = commonDottyCompilerSettings ++ Seq(