From 910ee8a6627424ac3779b0a4f118463e4684fd04 Mon Sep 17 00:00:00 2001 From: "Paolo G. Giarrusso" Date: Thu, 23 Aug 2018 11:28:04 +0200 Subject: [PATCH] Fix #4951: Increase test stack size before bootstrap To test, use `testCompilation inductive-implicits-bench` before and after, locally. --- project/Build.scala | 3 +++ 1 file changed, 3 insertions(+) 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(