Skip to content

Commit f3a69ec

Browse files
committed
Fixed Dotty compilation
1 parent db86ff0 commit f3a69ec

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

build.sbt

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,9 @@ lazy val commonSettings = Seq(
2222
),
2323
Compile / unmanagedSourceDirectories ++= {
2424
if (isDotty.value)
25-
List(baseDirectory.value / "scala-3", baseDirectory.value / "../shared/scala-3")
25+
List(CrossType.Pure, CrossType.Full).flatMap(
26+
_.sharedSrcDir(baseDirectory.value, "main").toList.map(f => file(f.getPath + "-3"))
27+
)
2628
else Nil
2729
},
2830
unmanagedResources in Compile ++= {

0 commit comments

Comments
 (0)