Skip to content

Commit

Permalink
Add -Ywarn-macros:after only for Scala >= 2.12 (#118)
Browse files Browse the repository at this point in the history
  • Loading branch information
sideeffffect authored Apr 2, 2021
1 parent 429cee8 commit 23ecb6e
Showing 1 changed file with 4 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -50,8 +50,10 @@ object DecentScalaPlugin extends AutoPlugin {
),
scalacOptions ++= List(
"-P:silencer:checkUnused",
"-Ywarn-macros:after",
),
) ++ (CrossVersion.partialVersion(scalaVersion.value) match {
case Some((2, 11)) => List()
case _ => List("-Ywarn-macros:after")
}),
scalacOptions --= {
if (!sys.env.contains("CI"))
List("-Xfatal-warnings") // to enable Scalafix
Expand Down

0 comments on commit 23ecb6e

Please sign in to comment.