nix-build: Print stats even in failing builds

This commit is contained in:
Graham Christensen 2018-08-31 21:03:32 -04:00
parent b7bb627f67
commit 87702532d2
No known key found for this signature in database
GPG key ID: ACA1C1D120C83D5C

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();
}
}