@@ -1374,25 +1374,21 @@ object Build {
1374
1374
)
1375
1375
1376
1376
lazy val `scala3-presentation-compiler` = project.in(file(" presentation-compiler" ))
1377
- .asScala3PresentationCompiler(NonBootstrapped )
1378
- lazy val `scala3-presentation-compiler-bootstrapped` = project.in(file(" presentation-compiler" ))
1379
- .asScala3PresentationCompiler(Bootstrapped )
1377
+ .withCommonSettings(Bootstrapped )
1378
+ .dependsOn(`scala3-compiler-bootstrapped`, `scala3-library-bootstrapped`)
1379
+ .settings(presentationCompilerSettings)
1380
+ .settings(scala3PresentationCompilerBuildInfo)
1380
1381
.settings(
1381
1382
// Add `-Yno-flexible-types` flag for bootstrap, see comments for `bootstrappedDottyCompilerSettings`
1382
1383
Compile / scalacOptions += " -Yno-flexible-types"
1383
1384
)
1384
1385
1385
- def scala3PresentationCompiler (implicit mode : Mode ): Project = mode match {
1386
- case NonBootstrapped => `scala3-presentation-compiler`
1387
- case Bootstrapped => `scala3-presentation-compiler-bootstrapped`
1388
- }
1389
-
1390
- def scala3PresentationCompilerBuildInfo (implicit mode : Mode ) =
1386
+ def scala3PresentationCompilerBuildInfo =
1391
1387
Seq (
1392
1388
ideTestsDependencyClasspath := {
1393
- val dottyLib = (dottyLibrary / Compile / classDirectory).value
1389
+ val dottyLib = (`scala3-library-bootstrapped` / Compile / classDirectory).value
1394
1390
val scalaLib =
1395
- (dottyLibrary / Compile / dependencyClasspath)
1391
+ (`scala3-library-bootstrapped` / Compile / dependencyClasspath)
1396
1392
.value
1397
1393
.map(_.data)
1398
1394
.filter(_.getName.matches(" scala-library.*\\ .jar" ))
@@ -2284,9 +2280,9 @@ object Build {
2284
2280
2285
2281
// FIXME: we do not aggregate `bin` because its tests delete jars, thus breaking other tests
2286
2282
def asDottyRoot (implicit mode : Mode ): Project = project.withCommonSettings.
2287
- aggregate(`scala3-interfaces`, dottyLibrary, dottyCompiler, tastyCore, `scala3-sbt-bridge`, scala3PresentationCompiler ).
2283
+ aggregate(`scala3-interfaces`, dottyLibrary, dottyCompiler, tastyCore, `scala3-sbt-bridge`).
2288
2284
bootstrappedAggregate(`scala2-library-tasty`, `scala2-library-cc-tasty`, `scala3-language-server`, `scala3-staging`,
2289
- `scala3-tasty-inspector`, `scala3-library-bootstrappedJS`, scaladoc).
2285
+ `scala3-tasty-inspector`, `scala3-library-bootstrappedJS`, scaladoc, `scala3-presentation-compiler` ).
2290
2286
dependsOn(tastyCore).
2291
2287
dependsOn(dottyCompiler).
2292
2288
dependsOn(dottyLibrary).
@@ -2396,11 +2392,6 @@ object Build {
2396
2392
settings(commonBenchmarkSettings).
2397
2393
enablePlugins(JmhPlugin )
2398
2394
2399
- def asScala3PresentationCompiler (implicit mode : Mode ): Project = project.withCommonSettings.
2400
- dependsOn(dottyCompiler, dottyLibrary).
2401
- settings(presentationCompilerSettings).
2402
- settings(scala3PresentationCompilerBuildInfo)
2403
-
2404
2395
def asDist (implicit mode : Mode ): Project = project.
2405
2396
enablePlugins(UniversalPlugin , RepublishPlugin ).
2406
2397
withCommonSettings.
0 commit comments