diff options
Diffstat (limited to 'rust/bindgen.go')
-rw-r--r-- | rust/bindgen.go | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/rust/bindgen.go b/rust/bindgen.go index 132b1fdb3..099bc6e26 100644 --- a/rust/bindgen.go +++ b/rust/bindgen.go @@ -41,8 +41,10 @@ var ( bindgen = pctx.AndroidStaticRule("bindgen", blueprint.RuleParams{ Command: "CLANG_PATH=$bindgenClang LIBCLANG_PATH=$bindgenLibClang RUSTFMT=${config.RustBin}/rustfmt " + - "$bindgenCmd $flags $in -o $out -- $cflags", + "$bindgenCmd $flags $in -o $out -- -MD -MF $out.d $cflags", CommandDeps: []string{"$bindgenCmd"}, + Deps: blueprint.DepsGCC, + Depfile: "$out.d", }, "flags", "cflags") ) |