diff options
author | 2020-08-28 17:00:26 -0400 | |
---|---|---|
committer | 2020-08-31 10:58:35 -0400 | |
commit | ddd0bdb372e02786f800ef96d3a87ef8bf25af27 (patch) | |
tree | 65005ffe9ed8dd32775413bacedb543ae5b4f1d1 /rust/bindgen.go | |
parent | 682c9d7b2538f8f7f2185296b91abf04835912fc (diff) |
rust: Fix rust_bindgen implicits
rust_bindgen implicits currently include dependency-exported include
directories. This is incorrect, and causes issues when the include
directory is a generated directory.
Instead, remove the dependency-exported include directories from the
implicits list, and also add dependency-exported headers to the
implicits to handle these correctly.
Bug: 166779501
Test: Rust projects continue to build, test-case no longer failing.
Change-Id: Ia2da25de9e712b7306f19603dc9d14de6bac3fb3
Diffstat (limited to 'rust/bindgen.go')
-rw-r--r-- | rust/bindgen.go | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/rust/bindgen.go b/rust/bindgen.go index 03363085b..2b3bd5146 100644 --- a/rust/bindgen.go +++ b/rust/bindgen.go @@ -97,8 +97,7 @@ func (b *bindgenDecorator) GenerateSource(ctx ModuleContext, deps PathDeps) andr var cflags []string var implicits android.Paths - implicits = append(implicits, deps.depIncludePaths...) - implicits = append(implicits, deps.depSystemIncludePaths...) + implicits = append(implicits, deps.depGeneratedHeaders...) // Default clang flags cflags = append(cflags, "${cc_config.CommonClangGlobalCflags}") |