Fix crash with duplicate implicit outputs.
authorNico Weber <nicolasweber@gmx.de>
Wed, 27 Apr 2016 01:55:20 +0000 (21:55 -0400)
committerNico Weber <nicolasweber@gmx.de>
Wed, 27 Apr 2016 13:36:42 +0000 (09:36 -0400)
commit29f373a66bb9d3c56a1d4cf476832c12b7e2e1ad
tree01ef2ee7a18ca8aa2c22cdfbe5e5e264f81b176b
parentaa79fbe25f55e4eeac384d322df8a44bbeb4fe23
Fix crash with duplicate implicit outputs.

Sadly, duplicate outputs aren't an error by default in Ninja (see also
a new edge has no effect.  Remember to decrement the "number of
implicit outputs" counter for the new edge when this happens.

Fixes #1136.
src/manifest_parser.cc
src/manifest_parser_test.cc