summaryrefslogtreecommitdiffstats
path: root/src/manifest_parser.cc
diff options
context:
space:
mode:
authorEvan Martin <martine@danga.com>2013-04-05 17:27:22 (GMT)
committerEvan Martin <martine@danga.com>2013-04-08 22:02:46 (GMT)
commitadc4ee81443dbfae8584456c04ea1ba383da3d01 (patch)
tree7d2a8469583a476954b5adcd107e3703d7dd20d2 /src/manifest_parser.cc
parentc47f2cedbb8f44182a72343d0c71f5af5196d274 (diff)
downloadNinja-adc4ee81443dbfae8584456c04ea1ba383da3d01.zip
Ninja-adc4ee81443dbfae8584456c04ea1ba383da3d01.tar.gz
Ninja-adc4ee81443dbfae8584456c04ea1ba383da3d01.tar.bz2
make it an error for now to have multiple outputs with depslog
Diffstat (limited to 'src/manifest_parser.cc')
-rw-r--r--src/manifest_parser.cc8
1 files changed, 8 insertions, 0 deletions
diff --git a/src/manifest_parser.cc b/src/manifest_parser.cc
index 14fca73..a581114 100644
--- a/src/manifest_parser.cc
+++ b/src/manifest_parser.cc
@@ -329,6 +329,14 @@ bool ManifestParser::ParseEdge(string* err) {
edge->implicit_deps_ = implicit;
edge->order_only_deps_ = order_only;
+ // Multiple outputs aren't (yet?) supported with depslog.
+ string deps_type = edge->GetBinding("deps");
+ if (!deps_type.empty() && edge->outputs_.size() > 1) {
+ return lexer_.Error("multiple outputs aren't (yet?) supported by depslog; "
+ "bring this up on the mailing list if it affects you",
+ err);
+ }
+
return true;
}