about summary refs log tree commit diff
path: root/third_party/nix/src/nix-build/nix-build.cc
diff options
context:
space:
mode:
authorVincent Ambo <mail@tazj.in>2020-08-21T01·07+0100
committertazjin <mail@tazj.in>2020-08-21T01·35+0000
commit06681c35a9191656b8f3a9a343e21457a71a947d (patch)
tree68f05e9e535f7951c196c930c317d0132287247e /third_party/nix/src/nix-build/nix-build.cc
parent262af89f81eda6ce26845563141481d447e04a06 (diff)
refactor(tvix): Replace several DiscardLogsSink() with std::cerr r/1698
Introduces the actual log sink in several places where we actually
want the build logs to thread through correctly.

This should cover *most* build paths.

Change-Id: I735dff8a79f7e35a5874eb89b4abb980f9703dc2
Reviewed-on: https://cl.tvl.fyi/c/depot/+/1827
Reviewed-by: glittershark <grfn@gws.fyi>
Tested-by: BuildkiteCI
Diffstat (limited to 'third_party/nix/src/nix-build/nix-build.cc')
-rw-r--r--third_party/nix/src/nix-build/nix-build.cc3
1 files changed, 1 insertions, 2 deletions
diff --git a/third_party/nix/src/nix-build/nix-build.cc b/third_party/nix/src/nix-build/nix-build.cc
index cc2d8bc2fbe9..6d1dd80944ed 100644
--- a/third_party/nix/src/nix-build/nix-build.cc
+++ b/third_party/nix/src/nix-build/nix-build.cc
@@ -359,8 +359,7 @@ static void _main(int argc, char** argv) {
     }
 
     if (!dryRun) {
-      auto discard_logs = DiscardLogsSink();
-      util::OkOrThrow(store->buildPaths(discard_logs, paths, buildMode));
+      util::OkOrThrow(store->buildPaths(std::cerr, paths, buildMode));
     }
   };