diff --git a/backend/src/main/scala/bloop/Compiler.scala b/backend/src/main/scala/bloop/Compiler.scala index 39e7e32c7f..0903368e5b 100644 --- a/backend/src/main/scala/bloop/Compiler.scala +++ b/backend/src/main/scala/bloop/Compiler.scala @@ -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