8000 Allow `-java-output-version` flag, matching Scala 3 by rtyley · Pull Request #10654 · scala/scala · GitHub
[go: up one dir, main page]

Skip to content

Allow -java-output-version flag, matching Scala 3 #10654

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

8000
Merged
merged 1 commit into from
Jan 13, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -78,7 +78,7 @@ trait StandardScalaSettings { _: MutableSettings =>
//target.value = setting.value // this would trigger deprecation
}
.withAbbreviation("--release")
// .withAbbreviation("-java-output-version")
.withAbbreviation("-java-output-version")
def releaseValue: Option[String] = release.valueSetByUser
val target =
ChoiceSetting("-target", "target", "Target platform for object files.", AllTargetVersions, "8")
Expand All @@ -89,7 +89,7 @@ trait StandardScalaSettings { _: MutableSettings =>
.withAbbreviation("--target")
// .withAbbreviation("--Xtarget")
// .withAbbreviation("-Xtarget")
// .withAbbreviation("-Xunchecked-java-output-version")
.withAbbreviation("-Xunchecked-java-output-version")
.withDeprecationMessage("Use -release instead to compile against 46AC the correct platform API.")
def targetValue: String = target.valueSetByUser.orElse(releaseValue).getOrElse(target.value)
val unchecked = BooleanSetting ("-unchecked", "Enable additional warnings where generated code depends on assumptions. See also -Wconf.") withAbbreviation "--unchecked" withPostSetHook { s =>
Expand Down
0