summaryrefslogtreecommitdiff
path: root/cc/strip.go
diff options
context:
space:
mode:
Diffstat (limited to 'cc/strip.go')
-rw-r--r--cc/strip.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/cc/strip.go b/cc/strip.go
index 32ea38df1..42c9137b7 100644
--- a/cc/strip.go
+++ b/cc/strip.go
@@ -52,7 +52,7 @@ type Stripper struct {
func (stripper *Stripper) NeedsStrip(actx android.ModuleContext) bool {
forceDisable := Bool(stripper.StripProperties.Strip.None)
// Strip is enabled by default for device variants.
- defaultEnable := actx.Device()
+ defaultEnable := actx.Device() || actx.Config().StripByDefault()
forceEnable := Bool(stripper.StripProperties.Strip.All) ||
Bool(stripper.StripProperties.Strip.Keep_symbols) ||
Bool(stripper.StripProperties.Strip.Keep_symbols_and_debug_frame)