Skip to content
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.

Commit 9910fd8

Browse files
committedApr 27, 2017
ParallelTesting#compile: nicer way to pass output flags to javac
1 parent da7a776 commit 9910fd8

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed
 

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

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -322,7 +322,8 @@ trait ParallelTesting extends RunnerOrchestration { self =>
322322

323323
protected def compile(files0: Array[JFile], flags0: Array[String], suppressErrors: Boolean, targetDir: JFile): TestReporter = {
324324

325-
val flags = flags0 ++ Array("-d", targetDir.getAbsolutePath)
325+
val outputFlags = Array("-d", targetDir.getAbsolutePath)
326+
val flags = flags0 ++ outputFlags
326327

327328
def flattenFiles(f: JFile): Array[JFile] =
328329
if (f.isDirectory) f.listFiles.flatMap(flattenFiles)
@@ -344,7 +345,7 @@ trait ParallelTesting extends RunnerOrchestration { self =>
344345
"javac",
345346
"-classpath",
346347
s".:${Jars.scalaLibraryFromRuntime}:${targetDir.getAbsolutePath}"
347-
) ++ flags.takeRight(2) ++ fs
348+
) ++ outputFlags ++ fs
348349

349350
Runtime.getRuntime.exec(fullArgs).waitFor() == 0
350351
} else true

0 commit comments

Comments
 (0)
Please sign in to comment.