Skip to content

Commit 8412e00

Browse files
committed
Make benchmarks depend only on library classpath
Testing that our benchmark program don't need to link against the compiler. Warning: This might make performance incomparable with earlier (similarly to other current changes.
1 parent 8ea863b commit 8412e00

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

project/Build.scala

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -302,7 +302,7 @@ object Build {
302302
lazy val commonBenchmarkSettings = Seq(
303303
outputStrategy := Some(StdoutOutput),
304304
mainClass in (Jmh, run) := Some("dotty.tools.benchmarks.Bench"), // custom main for jmh:run
305-
javaOptions += "-DBENCH_CLASS_PATH=" + Attributed.data((fullClasspath in Compile).value).mkString("", ":", "")
305+
javaOptions += "-DBENCH_CLASS_PATH=" + Attributed.data((fullClasspath in (`dotty-library`, Compile)).value).mkString("", ":", "")
306306
)
307307

308308
// sbt >= 0.13.12 will automatically rewrite transitive dependencies on

0 commit comments

Comments
 (0)