Skip to content

Commit 24d8242

Browse files
committed
Fix benchmarks compilation
1 parent f020621 commit 24d8242

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

bench/src/main/scala/Benchmarks.scala

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,8 @@ import scala.collection.JavaConverters._
1717
import scala.io.Source
1818
import scala.util.Using
1919

20+
import dotty.tools.io.AbstractFile
21+
2022
object Bench {
2123
val COMPILE_OPTS_FILE = "compile.txt"
2224

@@ -94,7 +96,7 @@ class CompilerOptions {
9496
class Worker extends Driver {
9597
// override to avoid printing summary information
9698
override def doCompile(compiler: Compiler, files: List[AbstractFile])(implicit ctx: Context): Reporter =
97-
if (fileNames.nonEmpty)
99+
if (files.nonEmpty)
98100
try {
99101
val run = compiler.newRun
100102
run.compile(files)

0 commit comments

Comments
 (0)