Reland "Symbols for libs in APEXes are available"
This reverts commit eaebd76656c41b43c3b4590c4cf03700df4a3ccd.
Bug: 120846816
Test: build/soong/build_test.bash -dist -products mainline_system_arm64
Test: lunch aosp_cf_x86_pasan-userdebug; m && SANITIZE_TARGET=address m
Change-Id: I0d2f3eba33c2d1d034d13839c1bd23970adb9f85
diff --git a/cc/cc.go b/cc/cc.go
index a30708a..ded89d4 100644
--- a/cc/cc.go
+++ b/cc/cc.go
@@ -404,6 +404,15 @@
return c.outputFile
}
+func (c *Module) UnstrippedOutputFile() android.Path {
+ if library, ok := c.linker.(*libraryDecorator); ok {
+ return library.unstrippedOutputFile
+ } else if binary, ok := c.linker.(*binaryDecorator); ok {
+ return binary.unstrippedOutputFile
+ }
+ return nil
+}
+
func (c *Module) Init() android.Module {
c.AddProperties(&c.Properties, &c.VendorProperties)
if c.compiler != nil {