diff options
author | 2021-06-11 18:01:26 -0700 | |
---|---|---|
committer | 2021-06-11 18:01:26 -0700 | |
commit | cef792e467086e4f398e50ac5a5091ffe9417f19 (patch) | |
tree | 7f62d11a0ea823a3a260c2a013e152af57512b3a | |
parent | c465efd5d4a28984dd1a0404633a18e522aed3c2 (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.go | 4 |
1 files changed, 4 insertions, 0 deletions
@@ -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 } |