diff options
author | 2025-03-11 19:02:43 -0700 | |
---|---|---|
committer | 2025-03-11 19:02:43 -0700 | |
commit | 84ec3e012b8a3705ebaf0c641bcbd4d0403db1e0 (patch) | |
tree | 6219d3d1d77fa1560ed9644f3ecd53a31f2cc456 /cc | |
parent | 9697c5303c4ee46cc43064f715b86e9bef712774 (diff) | |
parent | 77bb6dee6929e915f3abbe7a164e3f50ffbb7e52 (diff) |
Merge "Allow customizing stripping behavior with product variable" into main
Diffstat (limited to 'cc')
-rw-r--r-- | cc/strip.go | 2 |
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) |