diff options
author | Eelco Dolstra <edolstra@gmail.com> | 2020-06-11 15:45:18 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-06-11 15:45:18 +0200 |
commit | ac4d43a31bb32c1205b44d69e87606b7f54922a1 (patch) | |
tree | 692e5202bb25b33292000d6f6eb81a78a503ce74 /src/nix-build | |
parent | b9ae1bdd7a1ed8eee25fc37c97d74c1d6771778d (diff) | |
parent | dd9bb11d0d38139bb32411170403171c4c92f8cf (diff) |
Merge pull request #3073 from tweag/machine-logs
Add an option to print the logs in a machine-readable format
Diffstat (limited to 'src/nix-build')
-rwxr-xr-x | src/nix-build/nix-build.cc | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/nix-build/nix-build.cc b/src/nix-build/nix-build.cc index 0a058a31b..8649de5e9 100755 --- a/src/nix-build/nix-build.cc +++ b/src/nix-build/nix-build.cc @@ -472,6 +472,8 @@ static void _main(int argc, char * * argv) restoreSignals(); + logger->stop(); + execvp(shell->c_str(), argPtrs.data()); throw SysError("executing shell '%s'", *shell); @@ -521,6 +523,8 @@ static void _main(int argc, char * * argv) if (auto store2 = store.dynamic_pointer_cast<LocalFSStore>()) store2->addPermRoot(store->parseStorePath(symlink.second), absPath(symlink.first), true); + logger->stop(); + for (auto & path : outPaths) std::cout << path << '\n'; } |