@@ -1153,26 +1153,23 @@ object Build {
11531153 )
11541154
11551155 lazy val `scala3-presentation-compiler` = project.in(file(" presentation-compiler" ))
1156- .asScala3PresentationCompiler(NonBootstrapped )
1157- lazy val `scala3-presentation-compiler-bootstrapped` = project.in(file(" presentation-compiler" ))
1158- .asScala3PresentationCompiler(Bootstrapped )
1156+ .withCommonSettings(Bootstrapped )
1157+ .dependsOn(`scala3-compiler-bootstrapped`, `scala3-library-bootstrapped`, `scala3-presentation-compiler-testcases` % " test->test" )
1158+ .settings(presentationCompilerSettings)
1159+ .settings(scala3PresentationCompilerBuildInfo)
11591160
1160- def scala3PresentationCompiler (implicit mode : Mode ): Project = mode match {
1161- case NonBootstrapped => `scala3-presentation-compiler`
1162- case Bootstrapped => `scala3-presentation-compiler-bootstrapped`
1163- }
1164-
1165- def scala3PresentationCompilerBuildInfo (implicit mode : Mode ) =
1161+ def scala3PresentationCompilerBuildInfo =
11661162 Seq (
11671163 ideTestsDependencyClasspath := {
1168- val dottyLib = (dottyLibrary / Compile / classDirectory).value
1164+ val testCasesLib = (`scala3-presentation-compiler-testcases` / Compile / classDirectory).value
1165+ val dottyLib = (`scala3-library-bootstrapped` / Compile / classDirectory).value
11691166 val scalaLib =
1170- (dottyLibrary / Compile / dependencyClasspath)
1167+ (`scala3-library-bootstrapped` / Compile / dependencyClasspath)
11711168 .value
11721169 .map(_.data)
11731170 .filter(_.getName.matches(" scala-library.*\\ .jar" ))
11741171 .toList
1175- dottyLib :: scalaLib
1172+ testCasesLib :: dottyLib :: scalaLib
11761173 // Nil
11771174 },
11781175 Compile / buildInfoPackage := " dotty.tools.pc.buildinfo" ,
@@ -1231,6 +1228,10 @@ object Build {
12311228 )
12321229 }
12331230
1231+ lazy val `scala3-presentation-compiler-testcases` = project.in(file(" presentation-compiler-testcases" ))
1232+ .dependsOn(`scala3-compiler-bootstrapped`)
1233+ .settings(commonBootstrappedSettings)
1234+
12341235 lazy val `scala3-language-server` = project.in(file(" language-server" )).
12351236 dependsOn(dottyCompiler(Bootstrapped )).
12361237 settings(commonBootstrappedSettings).
@@ -1959,7 +1960,7 @@ object Build {
19591960
19601961 // FIXME: we do not aggregate `bin` because its tests delete jars, thus breaking other tests
19611962 def asDottyRoot (implicit mode : Mode ): Project = project.withCommonSettings.
1962- aggregate(`scala3-interfaces`, dottyLibrary, dottyCompiler, tastyCore, `scala3-sbt-bridge`, scala3PresentationCompiler ).
1963+ aggregate(`scala3-interfaces`, dottyLibrary, dottyCompiler, tastyCore, `scala3-sbt-bridge`, `scala3-presentation-compiler` ).
19631964 bootstrappedAggregate(`scala3-language-server`, `scala3-staging`,
19641965 `scala3-tasty-inspector`, `scala3-library-bootstrappedJS`, scaladoc).
19651966 dependsOn(tastyCore).
0 commit comments