From 5f5d271fc334e59817f8db9a9e231b2ea499ebf9 Mon Sep 17 00:00:00 2001 From: Wei Li Date: Mon, 11 Dec 2023 15:40:29 -0800 Subject: Build native libraries used by layoutlib. Bug: 303904212 Test: m layoutlib dist; CIs Change-Id: Id77cba97b2f66997431beb78ecc9d9b74b64b803 --- cc/cc.go | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'cc/cc.go') diff --git a/cc/cc.go b/cc/cc.go index 12db7975a..7a06128ed 100644 --- a/cc/cc.go +++ b/cc/cc.go @@ -617,6 +617,7 @@ type linker interface { link(ctx ModuleContext, flags Flags, deps PathDeps, objs Objects) android.Path appendLdflags([]string) unstrippedOutputFilePath() android.Path + strippedAllOutputFilePath() android.Path nativeCoverage() bool coverageOutputFilePath() android.OptionalPath @@ -3634,6 +3635,11 @@ func (c *Module) OutputFiles(tag string) (android.Paths, error) { return android.PathsIfNonNil(c.linker.unstrippedOutputFilePath()), nil } return nil, nil + case "stripped_all": + if c.linker != nil { + return android.PathsIfNonNil(c.linker.strippedAllOutputFilePath()), nil + } + return nil, nil default: return nil, fmt.Errorf("unsupported module reference tag %q", tag) } -- cgit v1.2.3-59-g8ed1b