Skip to content
This repository has been archived by the owner on Apr 22, 2020. It is now read-only.

Don't set -Yno-adapted-args in Scala 2.13 #1190

Merged
merged 1 commit into from
Jul 22, 2019
Merged

Don't set -Yno-adapted-args in Scala 2.13 #1190

merged 1 commit into from
Jul 22, 2019

Conversation

markus1189
Copy link
Contributor

Scala 2.13 no longer allows the option -Yno-adapted-args

@juanpedromoreno juanpedromoreno merged commit cd39cbf into 47degrees:master Jul 22, 2019
Copy link
Contributor

@fedefernandez fedefernandez left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We can use the scala binary version here:

  def scalacStrictOptions(scalaBinaryVersion: String) =
    Seq(
      "-Ywarn-dead-code",
      "-Ywarn-numeric-widen",
      "-Ywarn-value-discard",
      "-Xfuture"
    ) ++ Seq("-Yno-adapted-args").filterNot(_ => scalaBinaryVersion.startsWith("2.13"))

  def scalacAllOptions(scalaBinaryVersion: String): Seq[String] =
    scalacCommonOptions ++ scalacLanguageOptions ++ scalacStrictOptions(scalaBinaryVersion)

scalacOptions ++= scalacAllOptions(scalaBinaryVersion.value)

@markus1189 markus1189 deleted the scala-213 branch July 23, 2019 18:39
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants