Merge "Automatically inherit common properties."

am: d28f688e69

Change-Id: I2608257a595ade933d291ef5c4fb1f2c633c292b
This commit is contained in:
Steven Moreland 2019-07-31 09:10:41 -07:00 committed by android-build-merger
commit e3ff85b968

View file

@ -243,7 +243,8 @@ func (t *topDownMutatorContext) Rename(name string) {
} }
func (t *topDownMutatorContext) CreateModule(factory blueprint.ModuleFactory, props ...interface{}) { func (t *topDownMutatorContext) CreateModule(factory blueprint.ModuleFactory, props ...interface{}) {
t.bp.CreateModule(factory, props...) common := []interface{}{&t.Module().base().commonProperties}
t.bp.CreateModule(factory, append(common, props...)...)
} }
func (b *bottomUpMutatorContext) MutatorName() string { func (b *bottomUpMutatorContext) MutatorName() string {