Skip to content

Commit

Permalink
Remove -nameHasing and add -no-name-hashing option.
Browse files Browse the repository at this point in the history
Since sbt 0.13.6 the name hashing is enabled by default. This made
the option `-nameHasing` obsolete because it would enable what's already
enabled. What's worse, that option doesn't let user flip the default by
disabling name hashing algorithm. Hence we introduce `-no-name-hashing`
option that does exactly that.
  • Loading branch information
gkossakowski committed Feb 6, 2015
1 parent e4f6332 commit 78ee636
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/main/scala/com/typesafe/zinc/Settings.scala
Original file line number Diff line number Diff line change
Expand Up @@ -226,8 +226,8 @@ object Settings {
file( "-backup", "directory", "Backup location (if transactional)", (s: Settings, f: File) => s.copy(incOptions = s.incOptions.copy(backup = Some(f)))),
boolean( "-recompileOnMacroDefDisabled", "Disable recompilation of all dependencies of a macro def",
(s: Settings) => s.copy(incOptions = s.incOptions.copy(recompileOnMacroDef = false))),
boolean( "-nameHashing", "Enable improved (experimental) incremental compilation algorithm",
(s: Settings) => s.copy(incOptions = s.incOptions.copy(nameHashing = true))),
boolean( "-no-name-hashing", "Disable improved incremental compilation algorithm",
(s: Settings) => s.copy(incOptions = s.incOptions.copy(nameHashing = false))),

header("Analysis options:"),
file( "-analysis-cache", "file", "Cache file for compile analysis", (s: Settings, f: File) => s.copy(analysis = s.analysis.copy(cache = Some(f)))),
Expand Down

0 comments on commit 78ee636

Please sign in to comment.