summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--libcppbuild.cc7
1 files changed, 7 insertions, 0 deletions
diff --git a/libcppbuild.cc b/libcppbuild.cc
index 7280910..2a2c40d 100644
--- a/libcppbuild.cc
+++ b/libcppbuild.cc
@@ -12,6 +12,7 @@
#include <array>
#include <deque>
#include <fstream>
+#include <cstdlib>
#include <set>
#include <getoptpp/getoptpp.hpp>
@@ -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<std::string> files;