diff options
author | Brad King <brad.king@kitware.com> | 2015-10-19 14:25:03 -0400 |
---|---|---|
committer | Brad King <brad.king@kitware.com> | 2018-11-19 10:23:45 -0500 |
commit | 4a4f9d40e178a9a9e88f4cd502d2be49bf7938d8 (patch) | |
tree | bdc9ce225fcac536bc17e3a77cc1f42d53eaf181 /src/graph.h | |
parent | 6d6dfd17e83bbde57bee61a0956a73b12088a9d1 (diff) | |
download | ninja-4a4f9d40e178a9a9e88f4cd502d2be49bf7938d8.tar.gz |
Fix depfile parser handling of multiple rules
Currently we handle Makefile rules of the form:
out: in1 in2 in3
and the form:
out: in1 \
in2 \
in3
Teach the depfile parser to handle the additional form:
out: in1
out: in2
out: in3
This is also valid Makefile syntax and is the depfile format
generated by the Intel Compiler for Windows.
Note that the `gcc -MP` option adds empty phony rules to the generated
Makefile fragment:
out: in1 in2 in3
in1:
in2:
in3:
Previously we tolerated these because they were treated as inputs, which
was accidentally correct. Instead we must now tolerate these by
ignoring targets for which no dependencies are specified.
Diffstat (limited to 'src/graph.h')
0 files changed, 0 insertions, 0 deletions