Skip to content

Commit 1eaaa91

Browse files
authored
[mill] Guard scalaReflect under not Scala 3 in macros (#4640)
This fixes use of Scala Metals with Chisel.
1 parent f497ceb commit 1eaaa91

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

macros/package.mill

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,5 +25,10 @@ trait Macros extends CrossSbtModule with HasScala2MacroAnno with ScalafmtModule
2525
}
2626
}
2727

28-
override def ivyDeps = super.ivyDeps() ++ Seq(v.scalaReflect(crossScalaVersion))
28+
override def ivyDeps =
29+
if (!v.isScala3(crossScalaVersion)) {
30+
super.ivyDeps() ++ Seq(v.scalaReflect(crossScalaVersion))
31+
} else {
32+
super.ivyDeps()
33+
}
2934
}

0 commit comments

Comments
 (0)