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
This commit is contained in:
@@ -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}")
|
||||
|
Reference in New Issue
Block a user