Skip to content

Commit 7428f41

Browse files
mcc-1326235 scalacopts p37
1 parent 26e8500 commit 7428f41

File tree

1 file changed

+10
-2
lines changed

1 file changed

+10
-2
lines changed

project/BuildSettings.scala

Lines changed: 10 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -46,11 +46,19 @@ object BuildSettings {
4646
}), // Stop these being errors, they are fine.
4747
Test / scalacOptions ++=
4848
List(
49-
"-Wnonunit-statement",
5049
"-Xlint:unused",
5150
"-Wconf:msg=unused value of type.*:s",
5251
"-Wconf:cat=unused:s"
53-
),
52+
) ++ (CrossVersion.partialVersion(scalaVersion.value) match {
53+
case Some((2, n)) if n >= 13 =>
54+
List(
55+
"-Wnonunit-statement"
56+
// other scalac options for 2.13+
57+
)
58+
case _ =>
59+
List(
60+
)
61+
}),
5462
scalacOptions --= {
5563
if (sys.env.contains("CI"))
5664
Seq.empty

0 commit comments

Comments
 (0)