Remove IsDependencyRoot from interface
This is equivalent to Binary() -- reduce the interface and improve clarity. Test: go test soong tests Change-Id: I770f5ce79fd4d888586d31ec5e67be88153626b6
This commit is contained in:
11
cc/cc.go
11
cc/cc.go
@@ -1119,17 +1119,6 @@ func (c *Module) Init() android.Module {
|
||||
return c
|
||||
}
|
||||
|
||||
// Returns true for dependency roots (binaries)
|
||||
// TODO(ccross): also handle dlopenable libraries
|
||||
func (c *Module) IsDependencyRoot() bool {
|
||||
if root, ok := c.linker.(interface {
|
||||
isDependencyRoot() bool
|
||||
}); ok {
|
||||
return root.isDependencyRoot()
|
||||
}
|
||||
return false
|
||||
}
|
||||
|
||||
func (c *Module) UseVndk() bool {
|
||||
return c.Properties.VndkVersion != ""
|
||||
}
|
||||
|
Reference in New Issue
Block a user