Remove references to SourceDepTag in module types am: 2d24c1b654
am: 069ebe6692
Change-Id: I0b7f249b3224ca8099f10eac53ee782f552ce951
This commit is contained in:
4
cc/cc.go
4
cc/cc.go
@@ -1202,8 +1202,6 @@ func (c *Module) depsToPaths(ctx android.ModuleContext) PathDeps {
|
||||
if ccDep == nil {
|
||||
// handling for a few module types that aren't cc Module but that are also supported
|
||||
switch depTag {
|
||||
case android.DefaultsDepTag, android.SourceDepTag:
|
||||
// Nothing to do
|
||||
case genSourceDepTag:
|
||||
if genRule, ok := dep.(genrule.SourceFileGenerator); ok {
|
||||
depPaths.GeneratedSources = append(depPaths.GeneratedSources,
|
||||
@@ -1241,8 +1239,6 @@ func (c *Module) depsToPaths(ctx android.ModuleContext) PathDeps {
|
||||
} else {
|
||||
ctx.ModuleErrorf("module %q is not a genrule", depName)
|
||||
}
|
||||
default:
|
||||
ctx.ModuleErrorf("depends on non-cc module %q", depName)
|
||||
}
|
||||
return
|
||||
}
|
||||
|
Reference in New Issue
Block a user