From a82cdb8fd9ba02034d296769772cdf81244da66a Mon Sep 17 00:00:00 2001 From: Boris Kolpackov Date: Mon, 20 Apr 2015 13:01:46 +0200 Subject: Automatically decide when to print relative/absolute paths --- build/cxx/module.cxx | 2 +- build/cxx/rule.cxx | 6 +++--- 2 files changed, 4 insertions(+), 4 deletions(-) (limited to 'build/cxx') diff --git a/build/cxx/module.cxx b/build/cxx/module.cxx index e5c71e7..846e324 100644 --- a/build/cxx/module.cxx +++ b/build/cxx/module.cxx @@ -61,7 +61,7 @@ namespace build // const char* args[] = {v.c_str (), "-dumpversion", nullptr}; - if (verb >= 1) + if (verb) print_process (args); else text << "test " << v; diff --git a/build/cxx/rule.cxx b/build/cxx/rule.cxx index a8a869f..963ecb1 100644 --- a/build/cxx/rule.cxx +++ b/build/cxx/rule.cxx @@ -278,7 +278,7 @@ namespace build assert (f.absolute ()); // Logic below depends on this. - level5 ([&]{trace << "prerequisite path: " << f.string ();}); + level5 ([&]{trace << "prerequisite path: " << f;}); // Split the name into its directory part, the name part, and // extension. Here we can assume the name part is a valid @@ -383,7 +383,7 @@ namespace build args.push_back (nullptr); - if (verb >= 1) + if (verb) print_process (args); else text << "c++ " << *s; @@ -758,7 +758,7 @@ namespace build args.push_back (nullptr); - if (verb >= 1) + if (verb) print_process (args); else text << "ld " << t; -- cgit v1.1