Skip to content

Commit f787d11

Browse files
Merge pull request #5520 from dotty-staging/prepare-dotty-lib-for-bootstrap
Prepare dotty-library for bootstrap
2 parents 49e0fbf + 70f709b commit f787d11

File tree

7 files changed

+5
-5
lines changed

7 files changed

+5
-5
lines changed

compiler/test/dotty/tools/dotc/CompilationTests.scala

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -220,7 +220,7 @@ class CompilationTests extends ParallelTesting {
220220
Array("-Ycheck-reentrant", "-Yemit-tasty-in-class")
221221
)
222222

223-
val libraryDirs = List(Paths.get("library/src"), Paths.get("library/src-scala3"))
223+
val libraryDirs = List(Paths.get("library/src"), Paths.get("library/src-bootstrapped"))
224224
val librarySources = libraryDirs.flatMap(d => sources(Files.walk(d)))
225225

226226
val lib =

project/Build.scala

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -775,14 +775,14 @@ object Build {
775775
lazy val dottyLibrarySettings = Seq(
776776
libraryDependencies += "org.scala-lang" % "scala-library" % scalacVersion,
777777
// Add version-specific source directories:
778-
// - files in src-scala3 will only be compiled by dotty
779-
// - files in src-scala2 will only be compiled by scalac
778+
// - files in src-non-bootstrapped will only be compiled by the reference compiler (scalac)
779+
// - files in src-bootstrapped will only be compiled by the current dotty compiler (non-bootstrapped and bootstrapped)
780780
unmanagedSourceDirectories in Compile += {
781781
val baseDir = baseDirectory.value
782782
if (isDotty.value)
783-
baseDir / "src-scala3"
783+
baseDir / "src-bootstrapped"
784784
else
785-
baseDir / "src-scala2"
785+
baseDir / "src-non-bootstrapped"
786786
}
787787
)
788788

0 commit comments

Comments
 (0)