Use llvm-{strip,objcopy} by default

... except for Darwin Mach-O, as it is not supported by llvm-strip.

Test: m checkbuild
Bug: 119221035
Change-Id: I021637b6dd3530bff1f563f2ec7c2168e1083b7e
This commit is contained in:
Yi Kong
2018-11-07 16:28:49 -08:00
parent 93c3f5368d
commit b5c34d7f40
4 changed files with 19 additions and 21 deletions

View File

@@ -255,7 +255,7 @@ type builderFlags struct {
stripKeepSymbols bool
stripKeepMiniDebugInfo bool
stripAddGnuDebuglink bool
stripUseLlvmStrip bool
stripUseGnuStrip bool
protoDeps android.Paths
protoFlags string
@@ -821,8 +821,8 @@ func TransformStrip(ctx android.ModuleContext, inputFile android.Path,
if flags.stripKeepSymbols {
args += " --keep-symbols"
}
if flags.stripUseLlvmStrip {
args += " --use-llvm-strip"
if flags.stripUseGnuStrip {
args += " --use-gnu-strip"
}
ctx.Build(pctx, android.BuildParams{