mirror of https://github.com/sbt/sbt.git
Name hashing is now turned on by default, so I’m changing the value for inc.Relations.empty, so inc.Analysis.empty functions as expected when it’s joined with name hashing analyses.
This commit is contained in:
parent
6fa61e972f
commit
112052241c
|
|
@ -217,7 +217,7 @@ final class IncOptions(
|
|||
|
||||
object IncOptions extends Serializable {
|
||||
private val recompileOnMacroDefDefault: Boolean = true
|
||||
private val nameHashingDefault: Boolean = true
|
||||
private[sbt] val nameHashingDefault: Boolean = true
|
||||
private val antStyleDefault: Boolean = false
|
||||
val Default = IncOptions(
|
||||
// 1. recompile changed sources
|
||||
|
|
|
|||
|
|
@ -227,7 +227,7 @@ object Relations {
|
|||
|
||||
def emptySource: Source = es
|
||||
private[inc] lazy val emptySourceDependencies: SourceDependencies = new SourceDependencies(e, estr)
|
||||
def empty: Relations = empty(nameHashing = false)
|
||||
def empty: Relations = empty(nameHashing = IncOptions.nameHashingDefault)
|
||||
private[inc] def empty(nameHashing: Boolean): Relations =
|
||||
if (nameHashing)
|
||||
new MRelationsNameHashing(e, e, emptySourceDependencies, emptySourceDependencies, estr, estr)
|
||||
|
|
|
|||
Loading…
Reference in New Issue