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/rule.cxx | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) (limited to 'build/rule.cxx') diff --git a/build/rule.cxx b/build/rule.cxx index a9afe1b..03dd056 100644 --- a/build/rule.cxx +++ b/build/rule.cxx @@ -223,8 +223,8 @@ namespace build // if (!dir_exists (d)) { - if (verb >= 1) - text << "mkdir " << d.string (); + if (verb) + text << "mkdir " << d; else text << "mkdir " << t; @@ -234,8 +234,7 @@ namespace build } catch (const system_error& e) { - fail << "unable to create directory " << d.string () << ": " - << e.what (); + fail << "unable to create directory " << d << ": " << e.what (); } ts = target_state::changed; -- cgit v1.1