Skip to content

Commit

Permalink
Merge pull request scala#11687 from adpi2/bsp
Browse files Browse the repository at this point in the history
Disable BSP in Jmh and vscode-dotty
  • Loading branch information
smarter authored Mar 10, 2021
2 parents a147975 + 53bbf2d commit 2961f69
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions project/Build.scala
Original file line number Diff line number Diff line change
Expand Up @@ -348,6 +348,7 @@ object Build {
)

lazy val commonBenchmarkSettings = Seq(
Jmh / bspEnabled := false,
mainClass in (Jmh, run) := Some("dotty.tools.benchmarks.Bench"), // custom main for jmh:run
javaOptions += "-DBENCH_COMPILER_CLASS_PATH=" + Attributed.data((fullClasspath in (`scala3-bootstrapped`, Compile)).value).mkString("", File.pathSeparator, ""),
javaOptions += "-DBENCH_CLASS_PATH=" + Attributed.data((fullClasspath in (`scala3-library-bootstrapped`, Compile)).value).mkString("", File.pathSeparator, "")
Expand Down Expand Up @@ -1236,6 +1237,7 @@ object Build {
version := "0.1.17-snapshot", // Keep in sync with package.json
autoScalaLibrary := false,
publishArtifact := false,
bspEnabled := false,
resourceGenerators in Compile += Def.task {
// Resources that will be copied when bootstrapping a new project
val buildSbtFile = baseDirectory.value / "out" / "build.sbt"
Expand Down

0 comments on commit 2961f69

Please sign in to comment.