Skip to content

Commit 6845396

Browse files
committed
Silence deprecations about AnyRefMap in scalajs-ir.
1 parent 8082dd7 commit 6845396

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

project/Build.scala

+7
Original file line numberDiff line numberDiff line change
@@ -739,6 +739,13 @@ object Build {
739739
// Use source 3.3 to avoid fatal migration warnings on scalajs-ir
740740
scalacOptions ++= Seq("-source", "3.3"),
741741

742+
/* Ignore a deprecation warning about AnyRefMap in scalajs-ir. The latter
743+
* cross-compiles for 2.12, and therefore AnyRefMap remains useful there
744+
* for performance reasons.
745+
* The build of Scala.js core does the same thing.
746+
*/
747+
scalacOptions += "-Wconf:cat=deprecation&origin=scala\\.collection\\.mutable\\.AnyRefMap.*:s",
748+
742749
// Generate compiler.properties, used by sbt
743750
(Compile / resourceGenerators) += Def.task {
744751
import java.util._

0 commit comments

Comments
 (0)