Skip to content

Commit

Permalink
-Xsource:3-cross
Browse files Browse the repository at this point in the history
  • Loading branch information
xuwei-k committed Jun 30, 2024
1 parent 340ee63 commit 7e417de
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion build.sbt
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,14 @@ scalacOptions ++= Seq(
)

scalacOptions ++= PartialFunction.condOpt(CrossVersion.partialVersion(scalaVersion.value)){
case Some((2, v)) if v >= 11 => Seq("-Ywarn-unused", "-Xsource:3")
case Some((2, v)) if v >= 11 => Seq("-Ywarn-unused")
}.toList.flatten

scalacOptions ++= PartialFunction.condOpt(CrossVersion.partialVersion(scalaVersion.value)){
case Some((2, 11 | 12)) =>
Seq("-Xsource:3")
case Some((2, 13)) =>
Seq("-Xsource:3-cross")
}.toList.flatten

Test / sources := {
Expand Down

0 comments on commit 7e417de

Please sign in to comment.