File tree Expand file tree Collapse file tree 1 file changed +9
-6
lines changed
compilation/src/main/scalac/scala/tools/benchmark Expand file tree Collapse file tree 1 file changed +9
-6
lines changed Original file line number Diff line number Diff line change @@ -23,14 +23,17 @@ trait BenchmarkDriver extends BaseBenchmarkDriver {
23
23
24
24
25
25
override protected def processSettingsHook (): Boolean = {
26
- if (source == " scala" )
27
- settings.sourcepath.value = Paths .get(s " ../corpus/ $source/ $corpusVersion/library " ).toAbsolutePath.normalize.toString
28
- else
29
- settings.classpath.value = findScalaJars
26
+ if (! source.startsWith(" @" )) {
27
+ // Don't set the classpath manually if it's to be loaded by the `@` processor
28
+ if (source == " scala" )
29
+ settings.sourcepath.value = Paths .get(s " ../corpus/ $source/ $corpusVersion/library " ).toAbsolutePath.normalize.toString
30
+ else settings.classpath.value = findScalaJars
31
+ if (depsClasspath != null && depsClasspath.nonEmpty)
32
+ settings.processArgumentString(s " -cp $depsClasspath" )
33
+ }
34
+
30
35
settings.outdir.value = tempDir.getAbsolutePath
31
36
settings.nowarn.value = true
32
- if (depsClasspath != null )
33
- settings.processArgumentString(s " -cp $depsClasspath" )
34
37
true
35
38
}
36
39
}
You can’t perform that action at this time.
0 commit comments