Skip to content

Commit

Permalink
#1550. Fixes scripted/join that broke with #1546
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
eed3si9n committed Aug 22, 2014
1 parent 6fa61e9 commit 1120522
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion compile/inc/src/main/scala/sbt/inc/IncOptions.scala
Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion compile/inc/src/main/scala/sbt/inc/Relations.scala
Expand Up @@ -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)
Expand Down

0 comments on commit 1120522

Please sign in to comment.