diff options
Diffstat (limited to 'cc/cc.go')
-rw-r--r-- | cc/cc.go | 8 |
1 files changed, 8 insertions, 0 deletions
@@ -763,6 +763,10 @@ type linker interface { // Get the deps that have been explicitly specified in the properties. linkerSpecifiedDeps(ctx android.ConfigurableEvaluatorContext, module *Module, specifiedDeps specifiedDeps) specifiedDeps + // Gets a list of files that will be disted when using the dist property without specifying + // an output file tag. + defaultDistFiles() []android.Path + moduleInfoJSON(ctx ModuleContext, moduleInfoJSON *android.ModuleInfoJSON) } @@ -2442,6 +2446,10 @@ func (c *Module) setOutputFiles(ctx ModuleContext) { if c.linker != nil { ctx.SetOutputFiles(android.PathsIfNonNil(c.linker.unstrippedOutputFilePath()), "unstripped") ctx.SetOutputFiles(android.PathsIfNonNil(c.linker.strippedAllOutputFilePath()), "stripped_all") + defaultDistFiles := c.linker.defaultDistFiles() + if len(defaultDistFiles) > 0 { + ctx.SetOutputFiles(defaultDistFiles, android.DefaultDistTag) + } } } |