mirror of https://github.com/sbt/sbt.git
Merge pull request #6231 from adpi2/1.4.x-fix-semanticdb
[1.4.x] Fix semanticdb on Scala > 3.0.0-M3
This commit is contained in:
commit
3a658dda2a
|
|
@ -43,7 +43,9 @@ object SemanticdbPlugin extends AutoPlugin {
|
||||||
},
|
},
|
||||||
semanticdbOptions += {
|
semanticdbOptions += {
|
||||||
val sv = scalaVersion.value
|
val sv = scalaVersion.value
|
||||||
if (ScalaInstance.isDotty(sv)) "-Ysemanticdb"
|
if (sv.startsWith("0.") || sv.startsWith("3.0.0-M1") || sv.startsWith("3.0.0-M2"))
|
||||||
|
"-Ysemanticdb"
|
||||||
|
else if (sv.startsWith("3.")) "-Xsemanticdb"
|
||||||
else "-Yrangepos"
|
else "-Yrangepos"
|
||||||
}
|
}
|
||||||
) ++
|
) ++
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue