summaryrefslogtreecommitdiff
path: root/rust/bindgen.go
diff options
context:
space:
mode:
author Ivan Lozano <ivanlozano@google.com> 2020-07-24 15:16:30 -0400
committer Ivan Lozano <ivanlozano@google.com> 2020-07-24 15:39:11 -0400
commite1e844b83cb37c72bf233034c3985a69f71e2e9d (patch)
tree99b8d667840f796fecab66613ed077380dfab642 /rust/bindgen.go
parent71c96d1e1d4203981acdf471041333d629624848 (diff)
Generate deps file for rust_bindgen modules.
Bug: 162007475 Test: deps file generated containing the dependent header files. Change-Id: I4abaf8e76875f7657c1b8386749217adcba1ffa2
Diffstat (limited to 'rust/bindgen.go')
-rw-r--r--rust/bindgen.go4
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")
)