Merge "Handle product_variable asflag for cc_object."
This commit is contained in:
@@ -539,7 +539,7 @@ func (t *topDownMutatorContext) CreateBazelTargetModule(
|
||||
Name: &name,
|
||||
}
|
||||
|
||||
b := t.CreateModule(factory, &nameProp, attrs).(BazelTargetModule)
|
||||
b := t.createModuleWithoutInheritance(factory, &nameProp, attrs).(BazelTargetModule)
|
||||
b.SetBazelTargetModuleProperties(bazelProps)
|
||||
return b
|
||||
}
|
||||
@@ -608,6 +608,11 @@ func (t *topDownMutatorContext) CreateModule(factory ModuleFactory, props ...int
|
||||
return module
|
||||
}
|
||||
|
||||
func (t *topDownMutatorContext) createModuleWithoutInheritance(factory ModuleFactory, props ...interface{}) Module {
|
||||
module := t.bp.CreateModule(ModuleFactoryAdaptor(factory), props...).(Module)
|
||||
return module
|
||||
}
|
||||
|
||||
func (b *bottomUpMutatorContext) MutatorName() string {
|
||||
return b.bp.MutatorName()
|
||||
}
|
||||
|
Reference in New Issue
Block a user