summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
author Colin Cross <ccross@android.com> 2021-06-11 18:01:26 -0700
committer Colin Cross <ccross@android.com> 2021-06-11 18:01:26 -0700
commitcef792e467086e4f398e50ac5a5091ffe9417f19 (patch)
tree7f62d11a0ea823a3a260c2a013e152af57512b3a
parentc465efd5d4a28984dd1a0404633a18e522aed3c2 (diff)
Support genrules as CrtBegin and CrtEnd
Host bionic will use a genrule output as a linker script in CrtBegin, support genrules as Crt* dependencies. Test: go test ./build/soong/cc/... Change-Id: Ie384089d26459797d0b4b5fef84846507fc508ad
-rw-r--r--cc/cc.go4
1 files changed, 4 insertions, 0 deletions
diff --git a/cc/cc.go b/cc/cc.go
index 1f8343d60..ef503afb2 100644
--- a/cc/cc.go
+++ b/cc/cc.go
@@ -2566,6 +2566,10 @@ func (c *Module) depsToPaths(ctx android.ModuleContext) PathDeps {
} else {
ctx.ModuleErrorf("module %q is not a genrule", depName)
}
+ case CrtBeginDepTag:
+ depPaths.CrtBegin = append(depPaths.CrtBegin, android.OutputFileForModule(ctx, dep, ""))
+ case CrtEndDepTag:
+ depPaths.CrtEnd = append(depPaths.CrtEnd, android.OutputFileForModule(ctx, dep, ""))
}
return
}