Skip to content

Commit 97514bb

Browse files
authored
Restore common scalacOptions to project chisel (#4507)
1 parent bbcc405 commit 97514bb

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

build.sc

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -315,6 +315,14 @@ trait Chisel extends CrossSbtModule with HasScala2MacroAnno with HasScala2Plugin
315315
def coreModule = core(crossScalaVersion)
316316
def pluginModule = plugin()
317317

318+
override def scalacOptions = T {
319+
if (v.isScala3(crossScalaVersion)) {
320+
Seq.empty[String]
321+
} else {
322+
super.scalacOptions() ++ v.scala2CommonOptions
323+
}
324+
}
325+
318326
override def moduleDeps = super.moduleDeps ++ Seq(coreModule, svsimModule)
319327

320328
object test extends SbtModuleTests with TestModule.ScalaTest with ScalafmtModule {

0 commit comments

Comments
 (0)