File tree 3 files changed +3
-5
lines changed
dotc/scala/tools/benchmark
scalac/scala/tools/benchmark 3 files changed +3
-5
lines changed Original file line number Diff line number Diff line change @@ -16,8 +16,7 @@ trait BenchmarkDriver extends BaseBenchmarkDriver {
16
16
ctx.setSetting(ctx.settings.d, tempDir.getAbsolutePath)
17
17
ctx.setSetting(ctx.settings.language, List (" Scala2" ))
18
18
val compiler = new dotty.tools.dotc.Compiler
19
- val args = compilerArgs ++ sourceFiles
20
- val reporter = dotty.tools.dotc.Bench .doCompile(compiler, args)
19
+ val reporter = dotty.tools.dotc.Bench .doCompile(compiler, allArgs)
21
20
assert(! reporter.hasErrors)
22
21
}
23
22
}
Original file line number Diff line number Diff line change @@ -17,6 +17,8 @@ import scala.tools.benchmark.BenchmarkDriver
17
17
trait BaseBenchmarkDriver {
18
18
def source : String
19
19
def extraArgs : String
20
+ def extras : List [String ] = if (extraArgs != null && extraArgs != " " ) extraArgs.split('|' ).toList else Nil
21
+ def allArgs : List [String ] = compilerArgs ++ extras ++ sourceFiles
20
22
def corpusVersion : String
21
23
def depsClasspath : String
22
24
def tempDir : File
Original file line number Diff line number Diff line change @@ -28,9 +28,6 @@ trait BenchmarkDriver extends BaseBenchmarkDriver {
28
28
}
29
29
}
30
30
val driver = new MainClass
31
-
32
- val extras = if (extraArgs != null && extraArgs != " " ) extraArgs.split('|' ).toList else Nil
33
- val allArgs = compilerArgs ++ extras ++ sourceFiles
34
31
driver.process(allArgs.toArray)
35
32
assert(! driver.reporter.hasErrors)
36
33
}
You can’t perform that action at this time.
0 commit comments