Skip to content

Commit

Permalink
Merge pull request #364 from tkrs/fix-compile-error
Browse files Browse the repository at this point in the history
build: fix compilation error
  • Loading branch information
tkrs authored Apr 25, 2024
2 parents 363eeb2 + 902e321 commit 87689c0
Showing 1 changed file with 3 additions and 7 deletions.
10 changes: 3 additions & 7 deletions build.sbt
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ lazy val mess = project
)
)
)
.settings(Compile / console / scalacOptions --= warnCompilerOptions)
// .settings(Compile / console / scalacOptions --= warnCompilerOptions)
.settings(Compile / console / scalacOptions += "-Yrepl-class-based")
.aggregate(core, benchmark, examples)
.dependsOn(core, benchmark, examples)
Expand Down Expand Up @@ -82,7 +82,7 @@ lazy val benchmark = project
.dependsOn(core % "test->test")

lazy val sharedSettings = Seq(
scalacOptions ++= compilerOptions ++ warnCompilerOptions ++ {
scalacOptions ++= compilerOptions ++ {
CrossVersion.partialVersion(scalaVersion.value) match {
case Some((3, _)) => Nil // Seq("-source:3.0-migration")
case Some((2, n)) if n >= 13 =>
Expand All @@ -94,7 +94,7 @@ lazy val sharedSettings = Seq(
"-Ywarn-numeric-widen"
)

case _ => Seq("-Xfuture", "-Ypartial-unification", "-Yno-adapted-args")
case _ => Seq("-Xfuture", "-Xfatal-warnings", "-Ypartial-unification", "-Yno-adapted-args")
}
}
)
Expand Down Expand Up @@ -125,7 +125,3 @@ lazy val compilerOptions = Seq(
"-language:higherKinds",
"-feature"
)

lazy val warnCompilerOptions = Seq(
"-Xfatal-warnings"
)

0 comments on commit 87689c0

Please sign in to comment.