about summary refs log tree commit diff
path: root/third_party/nix/src/nix-build/nix-build.cc
diff options
context:
space:
mode:
authorGriffin Smith <grfn@gws.fyi>2020-11-22T22·40-0500
committerglittershark <grfn@gws.fyi>2020-11-22T23·17+0000
commit24f9354d5b8e1521d00f41a7c100b8e9ad327ce7 (patch)
treed0a169c8ba2d20c6b476a7ada275c1fa95eadd54 /third_party/nix/src/nix-build/nix-build.cc
parent9e3f541546ae32085690e5e11d2162e47f155d40 (diff)
feat(tvix): Support a --quiet argument to nix-build r/1910
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 <mail@tazj.in>
Diffstat (limited to 'third_party/nix/src/nix-build/nix-build.cc')
-rw-r--r--third_party/nix/src/nix-build/nix-build.cc2
1 files changed, 2 insertions, 0 deletions
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;