Skip to content

Commit

Permalink
Merge pull request #2343 from tgodzik/target-options
Browse files Browse the repository at this point in the history
bugfix: Don't add -release flag if target is already present
  • Loading branch information
tgodzik authored May 30, 2024
2 parents 521314e + 7223323 commit 73f7d31
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion backend/src/main/scala/bloop/Compiler.scala
Original file line number Diff line number Diff line change
Expand Up @@ -639,7 +639,9 @@ object Compiler {
def existsReleaseSetting = scalacOptions.exists(opt =>
opt.startsWith("-release") ||
opt.startsWith("--release") ||
opt.startsWith("-java-output-version")
opt.startsWith("-java-output-version") ||
opt.startsWith("-Xtarget") ||
opt.startsWith("-target")
)
def sameHome = javacBin match {
case Some(bin) => bin.getParent.getParent == JavaRuntime.home
Expand Down

0 comments on commit 73f7d31

Please sign in to comment.