Make filegroup paths relative to module dir in mixed builds
filegroup.srcs must have a .rel() version of their paths that is relative to the module directory. Previously in mixed builds, the relative path wasn't filled in. Bug: 229251008 Bug: 204244290 Test: go tests, and USE_BAZEL_ANALYSIS=1 m apexer with the following cl Change-Id: I11a2a8b96139e0e7b956fa4c256a9a99c02f88f3
This commit is contained in:
@@ -178,8 +178,7 @@ func (fg *fileGroup) ProcessBazelQueryResponse(ctx ModuleContext) {
|
||||
|
||||
bazelOuts := make(Paths, 0, len(filePaths))
|
||||
for _, p := range filePaths {
|
||||
src := PathForBazelOut(ctx, p)
|
||||
bazelOuts = append(bazelOuts, src)
|
||||
bazelOuts = append(bazelOuts, PathForBazelOutRelative(ctx, ctx.ModuleDir(), p))
|
||||
}
|
||||
|
||||
fg.srcs = bazelOuts
|
||||
|
Reference in New Issue
Block a user