Skip to content

Commit 050c214

Browse files
committed
don't set -release compiler flag (based on -jvm)when compiling tests
1 parent 0852f43 commit 050c214

File tree

1 file changed

+1
-8
lines changed

1 file changed

+1
-8
lines changed

compiler/test/dotty/tools/vulpix/ParallelTesting.scala

Lines changed: 1 addition & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -474,15 +474,8 @@ trait ParallelTesting extends RunnerOrchestration { self =>
474474
if more == "+" then isJavaAtLeast(n) else javaSpecVersion == n
475475
case Some(args) => throw new IllegalStateException(args.mkString("unknown test option: ", ", ", ""))
476476
case None => true
477-
val minRelease = toolArgs.get(ToolName.Test) match
478-
case Some("-jvm" :: spec(n, more) :: Nil) =>
479-
if more == "+" then javaSpecVersion else n
480-
case _ => "8"
481477

482-
def scalacOptions =
483-
toolArgs.get(ToolName.Scalac)
484-
.map(args => if args.exists(_.startsWith("-release")) then args else "-release" :: minRelease :: args)
485-
.getOrElse(Nil)
478+
def scalacOptions = toolArgs.getOrElse(ToolName.Scalac, Nil)
486479

487480
val flags = flags0
488481
.and(scalacOptions: _*)

0 commit comments

Comments
 (0)