Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit cef792e4 authored by Colin Cross's avatar Colin Cross
Browse files

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
parent c465efd5
Loading
Loading
Loading
Loading
+4 −0
Original line number Diff line number Diff line
@@ -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
		}