Skip to content

Commit 682d919

Browse files
committed
Move library/src-3.x into library/src
1 parent 8a4f41a commit 682d919

25 files changed

+3
-16
lines changed
File renamed without changes.
File renamed without changes.

project/Build.scala

Lines changed: 3 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -712,28 +712,15 @@ object Build {
712712
// Needed so that the library sources are visible when `dotty.tools.dotc.core.Definitions#init` is called
713713
scalacOptions in Compile ++= Seq("-sourcepath", (scalaSource in Compile).value.getAbsolutePath),
714714

715-
// To be removed once we stop cross-compiling with Scala 2
716-
unmanagedSourceDirectories in Compile += {
717-
val baseDir = baseDirectory.value
718-
if (!isDotty.value)
719-
baseDir / "src-2.x"
720-
else
721-
baseDir / "src-3.x"
722-
},
723-
724715
// Add version-specific source directories:
725716
// - files in src-non-bootstrapped will only be compiled by the reference compiler
726717
// - files in src-bootstrapped will only be compiled by the current dotty compiler (non-bootstrapped and bootstrapped)
727718
unmanagedSourceDirectories in Compile ++= {
728719
val baseDir = baseDirectory.value
729-
if (isDotty.value) {
730-
if (scalaVersion.value == referenceVersion)
731-
Seq(baseDir / "src-non-bootstrapped")
732-
else
733-
Seq(baseDir / "src-bootstrapped")
734-
}
720+
if (scalaVersion.value == referenceVersion)
721+
Seq(baseDir / "src-non-bootstrapped")
735722
else
736-
Seq()
723+
Seq(baseDir / "src-bootstrapped")
737724
}
738725
)
739726

0 commit comments

Comments
 (0)