Merge "Add an option to preserve symbols and debug_frame."
This commit is contained in:
@@ -267,11 +267,12 @@ type builderFlags struct {
|
||||
|
||||
groupStaticLibs bool
|
||||
|
||||
stripKeepSymbols bool
|
||||
stripKeepSymbolsList string
|
||||
stripKeepMiniDebugInfo bool
|
||||
stripAddGnuDebuglink bool
|
||||
stripUseGnuStrip bool
|
||||
stripKeepSymbols bool
|
||||
stripKeepSymbolsList string
|
||||
stripKeepSymbolsAndDebugFrame bool
|
||||
stripKeepMiniDebugInfo bool
|
||||
stripAddGnuDebuglink bool
|
||||
stripUseGnuStrip bool
|
||||
|
||||
proto android.ProtoFlags
|
||||
protoC bool
|
||||
@@ -852,6 +853,9 @@ func TransformStrip(ctx android.ModuleContext, inputFile android.Path,
|
||||
if flags.stripKeepSymbolsList != "" {
|
||||
args += " -k" + flags.stripKeepSymbolsList
|
||||
}
|
||||
if flags.stripKeepSymbolsAndDebugFrame {
|
||||
args += " --keep-symbols-and-debug-frame"
|
||||
}
|
||||
if flags.stripUseGnuStrip {
|
||||
args += " --use-gnu-strip"
|
||||
}
|
||||
|
Reference in New Issue
Block a user