From 68bf2848332fd15a2b6dfa49f3a58fccd899dbd7 Mon Sep 17 00:00:00 2001 From: Bent Bisballe Nyeng Date: Tue, 22 Jun 2021 20:15:19 +0200 Subject: Setting V env variable overloads the verbosity. --- libcppbuild.cc | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/libcppbuild.cc b/libcppbuild.cc index 7280910..2a2c40d 100644 --- a/libcppbuild.cc +++ b/libcppbuild.cc @@ -12,6 +12,7 @@ #include #include #include +#include #include #include @@ -527,6 +528,12 @@ int main(int argc, char* argv[]) opt.process(argc, argv); + auto verbose_env = std::getenv("V"); + if(verbose_env) + { + settings.verbose = std::atoi(verbose_env); + } + if(list_files) { std::set files; -- cgit v1.2.3