Skip to content

Commit 4a1bd37

Browse files
committed
Only add the dotty-staging classpath to bootstrapped compiler
1 parent e8b101a commit 4a1bd37

File tree

2 files changed

+6
-4
lines changed

2 files changed

+6
-4
lines changed

compiler/test/dotty/tools/vulpix/TestConfiguration.scala

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ object TestConfiguration {
3535
Properties.dottyCompiler
3636
))
3737

38-
val withStagingClasspath =
38+
lazy val withStagingClasspath =
3939
withCompilerClasspath + File.pathSeparator + mkClasspath(List(Properties.dottyStaging))
4040

4141
def mkClasspath(classpaths: List[String]): String =
@@ -51,7 +51,7 @@ object TestConfiguration {
5151
val defaultOptions = TestFlags(basicClasspath, commonOptions)
5252
val withCompilerOptions =
5353
defaultOptions.withClasspath(withCompilerClasspath).withRunClasspath(withCompilerClasspath)
54-
val withStagingOptions =
54+
lazy val withStagingOptions =
5555
defaultOptions.withClasspath(withStagingClasspath).withRunClasspath(withStagingClasspath)
5656
val allowDeepSubtypes = defaultOptions without "-Yno-deep-subtypes"
5757
val allowDoubleBindings = defaultOptions without "-Yno-double-bindings"

project/Build.scala

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -517,7 +517,6 @@ object Build {
517517
"-Ddotty.tests.classes.dottyInterfaces=" + jars("dotty-interfaces"),
518518
"-Ddotty.tests.classes.dottyLibrary=" + jars("dotty-library"),
519519
"-Ddotty.tests.classes.dottyCompiler=" + jars("dotty-compiler"),
520-
"-Ddotty.tests.classes.dottyStaging=" + jars("dotty-staging"),
521520
"-Ddotty.tests.classes.compilerInterface=" + findArtifactPath(externalDeps, "compiler-interface"),
522521
"-Ddotty.tests.classes.scalaLibrary=" + findArtifactPath(externalDeps, "scala-library"),
523522
"-Ddotty.tests.classes.scalaAsm=" + findArtifactPath(externalDeps, "scala-asm"),
@@ -682,7 +681,6 @@ object Build {
682681
// library on the compiler classpath since the non-bootstrapped one
683682
// may not be binary-compatible.
684683
"dotty-library" -> packageBin.in(`dotty-library-bootstrapped`, Compile).value,
685-
"dotty-staging" -> packageBin.in(LocalProject("dotty-staging"), Compile).value,
686684
).mapValues(_.getAbsolutePath)
687685
}
688686
}.value,
@@ -697,6 +695,10 @@ object Build {
697695
)
698696

699697
lazy val bootstrapedDottyCompilerSettings = commonDottyCompilerSettings ++ Seq(
698+
javaOptions += {
699+
val jars = packageAll.in(LocalProject("dotty-compiler-bootstrapped")).value
700+
"-Ddotty.tests.classes.dottyStaging=" + jars("dotty-staging")
701+
},
700702
packageAll := {
701703
packageAll.in(`dotty-compiler`).value ++ Seq(
702704
"dotty-compiler" -> packageBin.in(Compile).value.getAbsolutePath,

0 commit comments

Comments
 (0)