Handle include_build_directory prop in bp2build
Test: go test cc tests Test: generate bp2build, sync bp2build, bazel build //bionic/... Bug: 181794963 Change-Id: I8dcef585e3025ef6f44d22430ed67b1e0429dca0
This commit is contained in:
@@ -160,6 +160,10 @@ func ObjectBp2Build(ctx android.TopDownMutatorContext) {
|
||||
}
|
||||
}
|
||||
|
||||
if c, ok := m.compiler.(*baseCompiler); ok && c.includeBuildDirectory() {
|
||||
localIncludeDirs = append(localIncludeDirs, ".")
|
||||
}
|
||||
|
||||
var deps bazel.LabelList
|
||||
for _, props := range m.linker.linkerProps() {
|
||||
if objectLinkerProps, ok := props.(*ObjectLinkerProperties); ok {
|
||||
|
Reference in New Issue
Block a user