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 {
|
type StripProperties struct {
|
||||||
Strip struct {
|
Strip struct {
|
||||||
None *bool
|
None *bool
|
||||||
|
All *bool
|
||||||
Keep_symbols *bool
|
Keep_symbols *bool
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -38,9 +39,13 @@ func (stripper *stripper) strip(ctx ModuleContext, in android.Path, out android.
|
||||||
if ctx.Darwin() {
|
if ctx.Darwin() {
|
||||||
TransformDarwinStrip(ctx, in, out)
|
TransformDarwinStrip(ctx, in, out)
|
||||||
} else {
|
} else {
|
||||||
flags.stripKeepSymbols = Bool(stripper.StripProperties.Strip.Keep_symbols)
|
|
||||||
// TODO(ccross): don't add gnu debuglink for user builds
|
// TODO(ccross): don't add gnu debuglink for user builds
|
||||||
flags.stripAddGnuDebuglink = true
|
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)
|
TransformStrip(ctx, in, out, flags)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue