We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 68a24c0 commit e295a39Copy full SHA for e295a39
project/Build.scala
@@ -702,6 +702,19 @@ object Build {
702
IO.createDirectory(trgDir)
703
IO.unzip(scalaJSIRSourcesJar, trgDir)
704
705
+ // TODO hack to patch scalajs-ir to allow compilation with stricter pattern binding rules
706
+ val fileToPatch = trgDir / "org" / "scalajs" / "ir" / "Trees.scala"
707
+ val lines = IO.readLines(fileToPatch).map { line =>
708
+ if (line.endsWith("= propName"))
709
+ line + ": @unchecked"
710
+ else
711
+ line
712
+ }
713
+ IO.withTemporaryFile("Trees.scala", "patch") { f =>
714
+ IO.writeLines(f, lines)
715
+ IO.copyFile(f, fileToPatch)
716
717
+
718
(trgDir ** "*.scala").get.toSet
719
} (Set(scalaJSIRSourcesJar)).toSeq
720
}.taskValue,
0 commit comments