Skip to content

Commit

Permalink
Fix `-target is deprecated: Use -release instead to compile against t…
Browse files Browse the repository at this point in the history
…he correct platform API.` error (#265)
  • Loading branch information
guizmaii authored Aug 29, 2023
1 parent 2a1a8af commit 8e025b9
Showing 1 changed file with 2 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -86,15 +86,12 @@ trait ScalaCompilerSettings {
"-language:implicitConversions",
"-Xignore-scala2-macros",
"-noindent",
"-release",
javaPlatform
s"-release:$javaPlatform"
)
case Some((2, 13)) =>
Seq(
"-Ywarn-unused:params,-implicits",
"-release",
javaPlatform,
s"-target:$javaPlatform"
s"-release:$javaPlatform"
) ++ std2xOptions ++ optimizerOptions(optimize)
case Some((2, 12)) =>
Seq(
Expand Down

0 comments on commit 8e025b9

Please sign in to comment.