evanlabs / gyp

Automatically exported from code.google.com/p/gyp
0 stars 0 forks source link

bad .d file left around on filename change #267

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
file foo.cc.  gyp and build.  foo.o.d dep file is generated.
Rename file to foo.c
foo.o.d not regenerated as it should be, so an improper dep is left around 
(referencing foo.cc).

Blowing away all .ds on each gyp would work but seems overkill.
Not sure if making each .d depend on it's corresponding .c would work, since a 
rename makes the file go away.  Maybe dep on the directory that owns it?

Seems specific to make builds (e.g. Android and some Linux)

See recent Android and Linux build issues with sha1.cc being renamed to sha1.c.

Original issue reported on code.google.com by j...@chromium.org on 11 May 2012 at 4:01

GoogleCodeExporter commented 9 years ago
The discussion for reference:

https://groups.google.com/a/chromium.org/forum/#!topic/chromium-dev/tYVor032eeI

And an earlier occurrence from over year ago:

https://groups.google.com/a/chromium.org/forum/#!msg/chromium-dev/NemerLlS04I/u0
uWdKfaK9gJ

Original comment by phajdan.jr@chromium.org on 11 May 2012 at 4:31