aboutsummaryrefslogtreecommitdiff
path: root/build/rule.cxx
diff options
context:
space:
mode:
authorBoris Kolpackov <boris@codesynthesis.com>2015-04-20 13:01:46 +0200
committerBoris Kolpackov <boris@codesynthesis.com>2015-04-20 13:01:46 +0200
commita82cdb8fd9ba02034d296769772cdf81244da66a (patch)
tree2cd5fb0211984716780ce5fad18c19d7c4d9a794 /build/rule.cxx
parentc775a7f28a56ef96f097e677434eceec9d8f2cdf (diff)
Automatically decide when to print relative/absolute paths
Diffstat (limited to 'build/rule.cxx')
-rw-r--r--build/rule.cxx7
1 files changed, 3 insertions, 4 deletions
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;