Skip to content

Commit 44a598b

Browse files
committed
Build.scala: fix usage of -sourcepath
Previously it was missing some source directories (in particular, src-bootstrapped and src-non-bootstrapped).
1 parent 394217e commit 44a598b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

project/Build.scala

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -753,7 +753,7 @@ object Build {
753753
// Settings shared between dotty-library and dotty-library-bootstrapped
754754
lazy val dottyLibrarySettings = Seq(
755755
// Needed so that the library sources are visible when `dotty.tools.dotc.core.Definitions#init` is called
756-
scalacOptions in Compile ++= Seq("-sourcepath", (scalaSource in Compile).value.getAbsolutePath),
756+
scalacOptions in Compile ++= Seq("-sourcepath", (sourceDirectories in Compile).value.map(_.getAbsolutePath).distinct.mkString(File.pathSeparator)),
757757
)
758758

759759
lazy val `dotty-library` = project.in(file("library")).asDottyLibrary(NonBootstrapped)

0 commit comments

Comments
 (0)