martine/ninja — pull request #245 by usovalx (2012-03-12 19:19:28+00:00)
Title: Issue #241 - handle depfiles generated by older versions of GCC

This one supersedes my previous pull request -- implementation is much simpler now, error message should be a bit more clear.

Older versions of GCC would produce broken depfiles when -MT or -MQ is used
gcc43 -MT foo.o -MMD -MF foo.o.d -o foo.o -c foo.c
will result in the following depfile
foo.o foo.o:

Parse multiple outputs unifying duplicates and correctly report errors if
they are different.