Merge pull request #27 from wangying1015/small-fix
Fix insertion to Context.moduleNinjaNames
This commit is contained in:
commit
e491e9cd35
1 changed files with 1 additions and 2 deletions
|
@ -977,8 +977,6 @@ func (c *Context) addModules(modules []*moduleInfo) (errs []error) {
|
|||
ninjaName = toNinjaName(module.properties.Name) + strconv.Itoa(i)
|
||||
}
|
||||
|
||||
c.moduleNinjaNames[ninjaName] = group
|
||||
|
||||
group := &moduleGroup{
|
||||
name: module.properties.Name,
|
||||
ninjaName: ninjaName,
|
||||
|
@ -986,6 +984,7 @@ func (c *Context) addModules(modules []*moduleInfo) (errs []error) {
|
|||
}
|
||||
module.group = group
|
||||
c.moduleGroups[name] = group
|
||||
c.moduleNinjaNames[ninjaName] = group
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue