Skip to content

Commit

Permalink
Restore common scalacOptions to project chisel (#4507)
Browse files Browse the repository at this point in the history
  • Loading branch information
jackkoenig authored Nov 14, 2024
1 parent bbcc405 commit 97514bb
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions build.sc
Original file line number Diff line number Diff line change
Expand Up @@ -315,6 +315,14 @@ trait Chisel extends CrossSbtModule with HasScala2MacroAnno with HasScala2Plugin
def coreModule = core(crossScalaVersion)
def pluginModule = plugin()

override def scalacOptions = T {
if (v.isScala3(crossScalaVersion)) {
Seq.empty[String]
} else {
super.scalacOptions() ++ v.scala2CommonOptions
}
}

override def moduleDeps = super.moduleDeps ++ Seq(coreModule, svsimModule)

object test extends SbtModuleTests with TestModule.ScalaTest with ScalafmtModule {
Expand Down

0 comments on commit 97514bb

Please sign in to comment.