Don't strip stub libraries

LLNDK and NDK stubs are already not stripped, don't strip APEX stubs
either.

Test: m checkbuild
Change-Id: I9a50df4b8b73d764ca81634a8a3014726eceda99
This commit is contained in:
Colin Cross 2020-12-14 17:01:55 -08:00
parent 175500f016
commit adc81a0783

View file

@ -977,7 +977,12 @@ func (library *libraryDecorator) linkShared(ctx ModuleContext,
transformSharedObjectToToc(ctx, outputFile, tocFile, builderFlags)
stripFlags := flagsToStripFlags(flags)
if library.stripper.NeedsStrip(ctx) {
needsStrip := library.stripper.NeedsStrip(ctx)
if library.buildStubs() {
// No need to strip stubs libraries
needsStrip = false
}
if needsStrip {
if ctx.Darwin() {
stripFlags.StripUseGnuStrip = true
}