diff options
author | Boris Kolpackov <boris@codesynthesis.com> | 2015-01-20 17:18:09 +0200 |
---|---|---|
committer | Boris Kolpackov <boris@codesynthesis.com> | 2015-01-20 17:18:09 +0200 |
commit | b0524a0b18eec9d5e5c3f6ce30b6cecdd02a6306 (patch) | |
tree | 4b1efc586782507e0647e884d6a13c6605298508 /build/rule.cxx | |
parent | 47751abc43dab40e0ac4a1523994fd533e6a3b22 (diff) |
Diagnostic infrastructure revamp
Diffstat (limited to 'build/rule.cxx')
-rw-r--r-- | build/rule.cxx | 15 |
1 files changed, 8 insertions, 7 deletions
diff --git a/build/rule.cxx b/build/rule.cxx index b73b053..d40eebf 100644 --- a/build/rule.cxx +++ b/build/rule.cxx @@ -5,7 +5,8 @@ #include <build/rule> #include <utility> // move() -#include <iostream> + +#include <build/diagnostics> using namespace std; @@ -74,9 +75,9 @@ namespace build { if (mt < mtp->mtime ()) { - cerr << "error: no rule to update target " << t << endl - << "info: prerequisite " << pt << " is ahead of " << t << - " by " << (mtp->mtime () - mt) << endl; + error << "no rule to update target " << t << + info << "prerequisite " << pt << " is ahead of " << t + << " by " << (mtp->mtime () - mt); return target_state::failed; } @@ -87,9 +88,9 @@ namespace build // if (pt.state () == target_state::updated) { - cerr << "error: no rule to update target " << t << endl - << "info: prerequisite " << pt << " is ahead of " << t << - " because it was updated" << endl; + error << "no rule to update target " << t << + info << "prerequisite " << pt << " is ahead of " << t + << " because it was updated"; return target_state::failed; } |