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:
parent
175500f016
commit
adc81a0783
1 changed files with 6 additions and 1 deletions
|
@ -977,7 +977,12 @@ func (library *libraryDecorator) linkShared(ctx ModuleContext,
|
||||||
transformSharedObjectToToc(ctx, outputFile, tocFile, builderFlags)
|
transformSharedObjectToToc(ctx, outputFile, tocFile, builderFlags)
|
||||||
|
|
||||||
stripFlags := flagsToStripFlags(flags)
|
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() {
|
if ctx.Darwin() {
|
||||||
stripFlags.StripUseGnuStrip = true
|
stripFlags.StripUseGnuStrip = true
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue