Merge "XOM dependency check skipping static binaries."

This commit is contained in:
Treehugger Robot
2019-01-31 21:42:42 +00:00
committed by Gerrit Code Review

View File

@@ -50,7 +50,7 @@ func (xom *xom) flags(ctx ModuleContext, flags Flags) Flags {
// If any static dependencies have XOM disabled, we should disable XOM in this module, // If any static dependencies have XOM disabled, we should disable XOM in this module,
// the assumption being if it's been explicitly disabled then there's probably incompatible // the assumption being if it's been explicitly disabled then there's probably incompatible
// code in the library which may get pulled in. // code in the library which may get pulled in.
if !ctx.static() && !disableXom { if !disableXom {
ctx.VisitDirectDeps(func(m android.Module) { ctx.VisitDirectDeps(func(m android.Module) {
cc, ok := m.(*Module) cc, ok := m.(*Module)
if !ok || cc.xom == nil || !cc.static() { if !ok || cc.xom == nil || !cc.static() {