Add Soong support for stripping all symbols
Bug: 113936524 Test: m checkbuild Change-Id: I2fb4429aee689dc6a99dc973b37575a114e46be6
This commit is contained in:
parent
88f6fefeb4
commit
9a959cd519
|
@ -21,6 +21,7 @@ import (
|
|||
type StripProperties struct {
|
||||
Strip struct {
|
||||
None *bool
|
||||
All *bool
|
||||
Keep_symbols *bool
|
||||
}
|
||||
}
|
||||
|
@ -38,9 +39,13 @@ func (stripper *stripper) strip(ctx ModuleContext, in android.Path, out android.
|
|||
if ctx.Darwin() {
|
||||
TransformDarwinStrip(ctx, in, out)
|
||||
} else {
|
||||
flags.stripKeepSymbols = Bool(stripper.StripProperties.Strip.Keep_symbols)
|
||||
// TODO(ccross): don't add gnu debuglink for user builds
|
||||
flags.stripAddGnuDebuglink = true
|
||||
if Bool(stripper.StripProperties.Strip.Keep_symbols) {
|
||||
flags.stripKeepSymbols = true
|
||||
} else if !Bool(stripper.StripProperties.Strip.All) {
|
||||
flags.stripKeepMiniDebugInfo = true
|
||||
}
|
||||
TransformStrip(ctx, in, out, flags)
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue