From 24f9354d5b8e1521d00f41a7c100b8e9ad327ce7 Mon Sep 17 00:00:00 2001 From: Griffin Smith Date: Sun, 22 Nov 2020 17:40:21 -0500 Subject: feat(tvix): Support a --quiet argument to nix-build This is passed by some third-party tools, notably home-manager. At some point we should fully revamp argument parsing and log verbosity setting, but for now this gets us to more of a working state Fixes: b/78 Change-Id: I4134b17315e30145fd43d3659f407d7121ce8876 Reviewed-on: https://cl.tvl.fyi/c/depot/+/2136 Tested-by: BuildkiteCI Reviewed-by: tazjin --- third_party/nix/src/nix-build/nix-build.cc | 2 ++ 1 file changed, 2 insertions(+) (limited to 'third_party') diff --git a/third_party/nix/src/nix-build/nix-build.cc b/third_party/nix/src/nix-build/nix-build.cc index 26c308967724..c5a34a8475a3 100644 --- a/third_party/nix/src/nix-build/nix-build.cc +++ b/third_party/nix/src/nix-build/nix-build.cc @@ -242,6 +242,8 @@ static void _main(int argc, char** argv) { else if (*arg == "--keep") { keepVars.insert(getArg(*arg, arg, end)); + } else if (*arg == "--quiet") { + FLAGS_stderrthreshold = google::GLOG_FATAL; } else if (*arg == "-") { readStdin = true; -- cgit 1.4.1