Loading android/config.go +5 −0 Original line number Diff line number Diff line Loading @@ -200,6 +200,11 @@ func (c Config) ReleaseAconfigValueSets() []string { return c.config.productVariables.ReleaseAconfigValueSets } // If native modules should have symbols stripped by default. Default false, enabled for build tools func (c Config) StripByDefault() bool { return proptools.Bool(c.config.productVariables.StripByDefault) } func (c Config) ReleaseAconfigExtraReleaseConfigs() []string { result := []string{} if val, ok := c.config.productVariables.BuildFlags["RELEASE_ACONFIG_EXTRA_RELEASE_CONFIGS"]; ok { Loading android/variable.go +2 −0 Original line number Diff line number Diff line Loading @@ -554,6 +554,8 @@ type ProductVariables struct { OdmManifestFiles []string `json:",omitempty"` UseSoongNoticeXML *bool `json:",omitempty"` StripByDefault *bool `json:",omitempty"` } type PartitionQualifiedVariablesType struct { Loading cc/strip.go +1 −1 Original line number Diff line number Diff line Loading @@ -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) Loading Loading
android/config.go +5 −0 Original line number Diff line number Diff line Loading @@ -200,6 +200,11 @@ func (c Config) ReleaseAconfigValueSets() []string { return c.config.productVariables.ReleaseAconfigValueSets } // If native modules should have symbols stripped by default. Default false, enabled for build tools func (c Config) StripByDefault() bool { return proptools.Bool(c.config.productVariables.StripByDefault) } func (c Config) ReleaseAconfigExtraReleaseConfigs() []string { result := []string{} if val, ok := c.config.productVariables.BuildFlags["RELEASE_ACONFIG_EXTRA_RELEASE_CONFIGS"]; ok { Loading
android/variable.go +2 −0 Original line number Diff line number Diff line Loading @@ -554,6 +554,8 @@ type ProductVariables struct { OdmManifestFiles []string `json:",omitempty"` UseSoongNoticeXML *bool `json:",omitempty"` StripByDefault *bool `json:",omitempty"` } type PartitionQualifiedVariablesType struct { Loading
cc/strip.go +1 −1 Original line number Diff line number Diff line Loading @@ -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) Loading