Skip to content

Commit 43346dc

Browse files
sjrdWojciechMazur
authored andcommitted
Silence deprecations about AnyRefMap in scalajs-ir.
1 parent 124aeff commit 43346dc

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

project/Build.scala

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -589,6 +589,13 @@ object Build {
589589

590590
// Settings shared between scala3-compiler and scala3-compiler-bootstrapped
591591
lazy val commonDottyCompilerSettings = Seq(
592+
/* Ignore a deprecation warning about AnyRefMap in scalajs-ir. The latter
593+
* cross-compiles for 2.12, and therefore AnyRefMap remains useful there
594+
* for performance reasons.
595+
* The build of Scala.js core does the same thing.
596+
*/
597+
scalacOptions += "-Wconf:cat=deprecation&origin=scala\\.collection\\.mutable\\.AnyRefMap.*:s",
598+
592599
// Generate compiler.properties, used by sbt
593600
(Compile / resourceGenerators) += Def.task {
594601
import java.util._

0 commit comments

Comments
 (0)