Skip to content

Commit fe7a520

Browse files
committed
Only use stdlib-bootstrapped-tasty to bootstrapped tests
1 parent 91c590c commit fe7a520

File tree

3 files changed

+7
-8
lines changed

3 files changed

+7
-8
lines changed

compiler/test/dotty/Properties.scala

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -83,7 +83,7 @@ object Properties {
8383
def scalaLibrary: String = sys.props("dotty.tests.classes.scalaLibrary")
8484

8585
/** scala-library TASTy jar */
86-
def scalaLibraryTasty: String = sys.props("dotty.tests.tasties.scalaLibrary")
86+
def scalaLibraryTasty: Option[String] = sys.props.get("dotty.tests.tasties.scalaLibrary")
8787

8888
/** scala-asm jar */
8989
def scalaAsm: String = sys.props("dotty.tests.classes.scalaAsm")

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

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -25,14 +25,14 @@ object TestConfiguration {
2525
"-Xverify-signatures"
2626
)
2727

28-
val basicClasspath = mkClasspath(List(
29-
Properties.scalaLibraryTasty,
28+
val basicClasspath = mkClasspath(
29+
Properties.scalaLibraryTasty.toList ::: List(
3030
Properties.scalaLibrary,
3131
Properties.dottyLibrary
3232
))
3333

34-
val withCompilerClasspath = mkClasspath(List(
35-
Properties.scalaLibraryTasty,
34+
val withCompilerClasspath = mkClasspath(
35+
Properties.scalaLibraryTasty.toList ::: List(
3636
Properties.scalaLibrary,
3737
Properties.scalaAsm,
3838
Properties.jlineTerminal,

project/Build.scala

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -641,11 +641,11 @@ object Build {
641641
"-Ddotty.tests.classes.tastyCore=" + jars("tasty-core"),
642642
"-Ddotty.tests.classes.compilerInterface=" + findArtifactPath(externalDeps, "compiler-interface"),
643643
"-Ddotty.tests.classes.scalaLibrary=" + findArtifactPath(externalDeps, "scala-library"),
644-
"-Ddotty.tests.tasties.scalaLibrary=" + jars("stdlib-bootstrapped-tasty"),
645644
"-Ddotty.tests.classes.scalaAsm=" + findArtifactPath(externalDeps, "scala-asm"),
646645
"-Ddotty.tests.classes.jlineTerminal=" + findArtifactPath(externalDeps, "jline-terminal"),
647646
"-Ddotty.tests.classes.jlineReader=" + findArtifactPath(externalDeps, "jline-reader"),
648-
)
647+
) ++
648+
jars.get("stdlib-bootstrapped-tasty").map("-Ddotty.tests.tasties.scalaLibrary=" + _)
649649
},
650650

651651
javaOptions ++= Seq(
@@ -831,7 +831,6 @@ object Build {
831831
// library on the compiler classpath since the non-bootstrapped one
832832
// may not be binary-compatible.
833833
"scala3-library" -> (`scala3-library-bootstrapped` / Compile / packageBin).value,
834-
"stdlib-bootstrapped-tasty" -> (`stdlib-bootstrapped-tasty` / Compile / packageBin).value,
835834
).mapValues(_.getAbsolutePath)
836835
}
837836
}.value,

0 commit comments

Comments
 (0)