Skip to content

Commit

Permalink
Add Xsource:3 to core in Mill to match SBT (#4468)
Browse files Browse the repository at this point in the history
Also add to macros
  • Loading branch information
adkian-sifive authored Oct 15, 2024
1 parent e20cb96 commit 2aa0772
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions build.sc
Original file line number Diff line number Diff line change
Expand Up @@ -230,7 +230,9 @@ object macros extends Cross[Macros](v.scalaCrossVersions)
trait Macros extends common.MacrosModule with CrossSbtModule with ScalafmtModule {
def millSourcePath = super.millSourcePath / os.up / "macros"

override def scalacOptions = v.commonOptions
override def scalacOptions = v.commonOptions ++ Seq(
"-Xsource:3"
)

def scalaReflectIvy = v.scalaReflect(crossScalaVersion)
}
Expand All @@ -240,7 +242,9 @@ object core extends Cross[Core](v.scalaCrossVersions)
trait Core extends common.CoreModule with CrossSbtModule with ScalafmtModule {
def millSourcePath = super.millSourcePath / os.up / "core"

override def scalacOptions = v.commonOptions
override def scalacOptions = v.commonOptions ++ Seq(
"-Xsource:3"
)

def firrtlModule = firrtl(crossScalaVersion)

Expand Down

0 comments on commit 2aa0772

Please sign in to comment.