Fix restat builds with edges generating headers depended on through deps files
authorNico Weber <thakis@chromium.org>
Mon, 3 Jun 2013 23:37:57 +0000 (16:37 -0700)
committerNico Weber <thakis@chromium.org>
Mon, 3 Jun 2013 23:37:57 +0000 (16:37 -0700)
commitd2d0429489a77f8a61f4fb082e74db11f0bdfc43
treea018542a4b4d80e4f63f1e83b98f03c0d163bcce
parent4df15104d532ad91b7a9d3c54985180a6c2f2533
Fix restat builds with edges generating headers depended on through deps files
in deps mode.

`ImplicitDepLoader::LoadDepFile()` already adds a depfile edge from every file
mentioned in a depfile to the depfile's output.

`ImplicitDepLoader::LoadDepsFromLog()` didn't do this yet, so add it. Else,
if a restat rule clears a generated .h file, this wouldn't propagate to cc files
depending on that .h file through a depfile.

Fixues issue #590.
src/build_test.cc
src/graph.cc