]> git.ipfire.org Git - thirdparty/ccache.git/commitdiff
Add -MQ to compilation flags to make dependency files work properly
authorJoel Rosdahl <joel@rosdahl.net>
Sun, 13 Oct 2019 19:58:31 +0000 (21:58 +0200)
committerJoel Rosdahl <joel@rosdahl.net>
Sun, 13 Oct 2019 19:58:31 +0000 (21:58 +0200)
Looks like ccache’s own header dependencies have been broken since
4aa357782e48 and nobody noticed.

dev.mk.in

index 481549be66a2fd732db89460736a413a0a31ed5e..dbe2a22a8ae0fe699d1e39452356a552583389a6 100644 (file)
--- a/dev.mk.in
+++ b/dev.mk.in
@@ -1,7 +1,7 @@
 # GNU make syntax reigns in this file.
 
 all_cflags += -Werror
-all_cppflags += -MD -MP -MF .deps/$(subst .._,,$(subst /,_,$(subst $(srcdir)/,,$<))).d
+all_cppflags += -MD -MP -MF .deps/$(subst .._,,$(subst /,_,$(subst $(srcdir)/,,$<))).d -MQ $@
 
 A2X = a2x
 ASCIIDOC = asciidoc