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
commit 2ccd9b83d0
1 changed files with 1 additions and 1 deletions

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,
// the assumption being if it's been explicitly disabled then there's probably incompatible
// code in the library which may get pulled in.
if !ctx.static() && !disableXom {
if !disableXom {
ctx.VisitDirectDeps(func(m android.Module) {
cc, ok := m.(*Module)
if !ok || cc.xom == nil || !cc.static() {