From e2e5e98bcd0badcd437b8a67aa0986ed6d6678a9 Mon Sep 17 00:00:00 2001 From: Michael Forney Date: Fri, 5 Jul 2019 20:31:33 -0700 Subject: Use a separate preprocessor rule Otherwise, we end up passing both -c and -E to the compiler. --- rules.ninja | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'rules.ninja') diff --git a/rules.ninja b/rules.ninja index b4cd0187..f9a42064 100644 --- a/rules.ninja +++ b/rules.ninja @@ -9,6 +9,12 @@ rule cc deps = gcc description = CC $out +rule cpp + command = $cc -MMD -MF $out.d $cflags -E -P -o $out $in + depfile = $out.d + deps = gcc + description = CPP $out + rule as command = $as $asflags -o $out $in -- cgit v1.2.3