Open nico opened 10 years ago
Hm, both gcc's output and the thread I got this from ( https://groups.google.com/forum/#!topic/ninja-build/IGIZqyYq0AM ) add a completely empty line between outputs, so that might be easier than tracking line continuations.
Oh hey, #704 is related to this.
This generates a depfile looking like
Ninja currently thinks that
a
is the output, and/usr/bin/ls
,b
(ninja strips the trailing ':' for some reason), and/usr/bin/ls
are inputs. Instead, it should only read things on the first line as inputs fora
(with"\\\n"
being a line continuation character).One issue with this is that
gcc -MMD -MP -MF foo.d
output will then count as having multiple outputs in the depfile. If that's an issue in practice, maybe outputs with 0 inputs could be silently skipped.