nix-build: Print stats even in failing builds

(cherry picked from commit 87702532d2)
This commit is contained in:
Graham Christensen
2018-08-31 21:03:32 -04:00
committed by Eelco Dolstra
parent 958e037a08
commit 348a2eb84a

View File

@@ -305,6 +305,8 @@ void mainWrapped(int argc, char * * argv)
}
}
state->printStats();
auto buildPaths = [&](const PathSet & paths) {
/* Note: we do this even when !printMissing to efficiently
fetch binary cache data. */
@@ -495,7 +497,6 @@ void mainWrapped(int argc, char * * argv)
for (auto & path : outPaths)
std::cout << path << '\n';
state->printStats();
}
}