* Remove the undocumented `noscan' feature. It's no longer necessary

now that reference scanning is sufficiently streamy.
This commit is contained in:
Eelco Dolstra 2006-11-13 18:19:05 +00:00
parent e2a70b7ec0
commit f459a5bb3a

View file

@ -1479,21 +1479,18 @@ void DerivationGoal::computeClosure()
/* For this output path, find the references to other paths contained /* For this output path, find the references to other paths contained
in it. */ in it. */
PathSet references; PathSet references = scanForReferences(path, allPaths);
if (!pathExists(path + "/nix-support/no-scan")) {
references = scanForReferences(path, allPaths);
/* For debugging, print out the referenced and /* For debugging, print out the referenced and unreferenced
unreferenced paths. */ paths. */
for (PathSet::iterator i = inputPaths.begin(); for (PathSet::iterator i = inputPaths.begin();
i != inputPaths.end(); ++i) i != inputPaths.end(); ++i)
{ {
PathSet::iterator j = references.find(*i); PathSet::iterator j = references.find(*i);
if (j == references.end()) if (j == references.end())
debug(format("unreferenced input: `%1%'") % *i); debug(format("unreferenced input: `%1%'") % *i);
else else
debug(format("referenced input: `%1%'") % *i); debug(format("referenced input: `%1%'") % *i);
}
} }
allReferences[path] = references; allReferences[path] = references;