aboutsummaryrefslogtreecommitdiff
path: root/build/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/cxx
parentc775a7f28a56ef96f097e677434eceec9d8f2cdf (diff)
Automatically decide when to print relative/absolute paths
Diffstat (limited to 'build/cxx')
-rw-r--r--build/cxx/module.cxx2
-rw-r--r--build/cxx/rule.cxx6
2 files changed, 4 insertions, 4 deletions
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;