adjust the wording in "multiple rules generate X" warning
authorEvan Martin <martine@danga.com>
Fri, 19 Apr 2013 21:38:23 +0000 (14:38 -0700)
committerEvan Martin <martine@danga.com>
Fri, 19 Apr 2013 21:38:23 +0000 (14:38 -0700)
Ideally we'd detect this at build time and only warn if your build
was affected, but that's hard to do.  (Really we should just abort
when this scenario is detected rather than continuing, but now
users are relying on it.)

Hopefully improves issue #543.

src/state.cc

index d2d5ebe..9b6160b 100644 (file)
@@ -154,7 +154,8 @@ void State::AddOut(Edge* edge, StringPiece path) {
   edge->outputs_.push_back(node);
   if (node->in_edge()) {
     Warning("multiple rules generate %s. "
-            "build will not be correct; continuing anyway",
+            "builds involving this target will not be correct; "
+            "continuing anyway",
             path.AsString().c_str());
   }
   node->set_in_edge(edge);