Revert "Hide mutated variant in non-make builds."

am: da11d7422f

Change-Id: Ia3e8568ab7f9a501a28077fb224694778bd93450
This commit is contained in:
Orion Hodson 2017-10-31 22:09:06 +00:00 committed by android-build-merger
commit 062d42f4e9

View file

@ -574,22 +574,22 @@ func sanitizerMutator(t sanitizerType) func(android.BottomUpMutatorContext) {
modules[1].(*Module).sanitize.Properties.InSanitizerDir = true
modules[1].(*Module).sanitize.SetSanitizer(cfi, false)
}
}
if mctx.AConfig().EmbeddedInMake() && !mctx.Device() {
if isSanitizerEnabled {
modules[0].(*Module).Properties.HideFromMake = true
} else {
modules[1].(*Module).Properties.HideFromMake = true
}
}
if !mctx.AConfig().EmbeddedInMake() || !mctx.Device() {
} else {
if isSanitizerEnabled {
modules[0].(*Module).Properties.PreventInstall = true
} else {
modules[1].(*Module).Properties.PreventInstall = true
}
}
if mctx.AConfig().EmbeddedInMake() {
if !mctx.Device() {
if isSanitizerEnabled {
modules[0].(*Module).Properties.HideFromMake = true
} else {
modules[1].(*Module).Properties.HideFromMake = true
}
}
}
}
c.sanitize.Properties.SanitizeDep = false
}