summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMichael Forney <mforney@mforney.org>2020-06-21 15:02:22 -0700
committerMichael Forney <mforney@mforney.org>2020-06-22 22:47:59 -0700
commit20d08a2d0d4d3fdb5732341fd62243ac7bd44ae1 (patch)
treeda1f239ae09ccbe7eca39dbce26d4e3adef48808
parent71208abb64f0279762ec4d64790b7bfd6c0493b8 (diff)
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.
-rw-r--r--rules.ninja4
1 files changed, 2 insertions, 2 deletions
diff --git a/rules.ninja b/rules.ninja
index 34f80a99..a44f88fb 100644
--- 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