Skip to content

Commit

Permalink
bugfix: Don't add -release flag if target is already present
Browse files Browse the repository at this point in the history
The flags should not be used together and might cause unexpected issues
  • Loading branch information
tgodzik committed May 30, 2024
1 parent be00748 commit 3a755c5
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 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,8 @@ 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")
)
def sameHome = javacBin match {
case Some(bin) => bin.getParent.getParent == JavaRuntime.home
Expand Down

0 comments on commit 3a755c5

Please sign in to comment.