From c20eee36055951c7252daf465d1e74a6a0853390 Mon Sep 17 00:00:00 2001 From: Jiyong Park Date: Wed, 5 Sep 2018 22:36:17 +0900 Subject: [PATCH] Add OutputFile to cc.Module APEX needs to know the location of the output file of cc.Module to copy it to an intermediate directory and package there. Bug: 112672359 Test: m apex.test Change-Id: Iaa19b29c2859df96f50716001dbd57df3f596050 --- cc/cc.go | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/cc/cc.go b/cc/cc.go index 188a1cc56..d31a38adc 100644 --- a/cc/cc.go +++ b/cc/cc.go @@ -366,6 +366,10 @@ type Module struct { staticVariant *Module } +func (c *Module) OutputFile() android.OptionalPath { + return c.outputFile +} + func (c *Module) Init() android.Module { c.AddProperties(&c.Properties, &c.VendorProperties) if c.compiler != nil {