Skip to content

Commit 78e8ac1

Browse files
committed
Compile dotty lib with -Yerased-terms to support erasedValue
1 parent ed0ee3b commit 78e8ac1

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

project/Build.scala

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -737,6 +737,8 @@ object Build {
737737

738738
lazy val `dotty-library` = project.in(file("library")).asDottyLibrary(NonBootstrapped)
739739
lazy val `dotty-library-bootstrapped`: Project = project.in(file("library")).asDottyLibrary(Bootstrapped)
740+
// TODO: move -Yerased-terms to dottyLibrarySettings on reference compiler update
741+
.settings(scalacOptions in Compile += "-Yerased-terms") // support declaration of scala.compiletime.erasedValue
740742

741743
def dottyLibrary(implicit mode: Mode): Project = mode match {
742744
case NonBootstrapped => `dotty-library`
@@ -758,6 +760,7 @@ object Build {
758760
settings(
759761
unmanagedSourceDirectories in Compile :=
760762
(unmanagedSourceDirectories in (`dotty-library-bootstrapped`, Compile)).value,
763+
scalacOptions += "-Yerased-terms", // support declaration of scala.compiletime.erasedValue
761764
)
762765

763766
lazy val tastyCoreSettings = Seq(

0 commit comments

Comments
 (0)