Skip to content

Commit

Permalink
Update scalacOptions
Browse files Browse the repository at this point in the history
  • Loading branch information
xuwei-k committed Aug 25, 2024
1 parent 0d4787c commit ba67212
Showing 1 changed file with 7 additions and 11 deletions.
18 changes: 7 additions & 11 deletions build.sbt
Original file line number Diff line number Diff line change
Expand Up @@ -100,29 +100,25 @@ lazy val compileSettings = Seq(
Nil
} else {
unusedWarnings ++ Seq(
"-Xlint",
"-Xfuture"
"-Xlint"
)
}
},
scalacOptions ++= {
scalaBinaryVersion.value match {
case "2.12" =>
Seq("-Xsource:3", "-language:higherKinds")
Seq(
"-Yno-adapted-args",
"-Xsource:3",
"-language:higherKinds",
"-Xfuture"
)
case "2.13" =>
Seq("-Xsource:3-cross")
case _ =>
Nil
}
},
scalacOptions ++= {
CrossVersion.partialVersion(scalaVersion.value) match {
case Some((2, v)) if v <= 12 =>
Seq("-Yno-adapted-args")
case _ =>
Nil
}
},
scalacOptions ++= Seq(
"-deprecation",
"-unchecked",
Expand Down

0 comments on commit ba67212

Please sign in to comment.