martine/ninja — Issue #162: makefile parser reads deps file incorrectly
Author: jsternberg
Created: 2011-12-23 05:39:16+00:00
State: open

I get the following on the latest build of ninja.

ninja: ERROR: expected depfile 'build/ninja.o.d' to mention 'build/ninja.o', got 'build/ninja.o:'

This happens on Linux Mint 12.

On another note, I noticed that the Makefile parsing code got replaced from its simple form to something involving re2c. Is there a particular reason this was done? My guess would only be to make the "parser" act more like make, but I thought the desire was just to be able to read the files generated by gcc.

I ask this because I was modifying ninja to work on a different platform (one where external dependencies may or may not exist on the platform. I haven't looked, but I doubt that re2c supports this OS out of the box) and I don't see any reason why re2c is needed. I would personally hate to keep track of my own fork and avoid any improvements that go into the upstream version of ninja.