commit: 20d08a2d0d4d3fdb5732341fd62243ac7bd44ae1
parent 71208abb64f0279762ec4d64790b7bfd6c0493b8
Author: Michael Forney <mforney@mforney.org>
Date: Sun, 21 Jun 2020 15:02:22 -0700
Track system header dependencies
This change was meant to be included in d4297a13c8. Now that we use
-isystem to include header from other packages, we should make sure
those headers appear in the .d files.
Diffstat:
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/rules.ninja b/rules.ninja
@@ -4,13 +4,13 @@ rule gen
# toolchain
rule cc
- command = $cc -MMD -MF $out.d $cflags -c -o $out $in
+ command = $cc -MD -MF $out.d $cflags -c -o $out $in
depfile = $out.d
deps = gcc
description = CC $out
rule cpp
- command = $cc -MMD -MF $out.d $cflags -E -P -o $out $in
+ command = $cc -MD -MF $out.d $cflags -E -P -o $out $in
depfile = $out.d
deps = gcc
description = CPP $out