Merge "Fix UBSanitized host binaries missing runtime."

This commit is contained in:
Ivan Lozano 2020-03-12 16:53:03 +00:00 committed by Gerrit Code Review
commit ea0006fcc0

View file

@ -900,6 +900,11 @@ func sanitizerRuntimeMutator(mctx android.BottomUpMutatorContext) {
c.sanitize.Properties.Sanitizers = sanitizers
c.sanitize.Properties.DiagSanitizers = diagSanitizers
// TODO(b/150822854) Hosts have a different default behavior and assume the runtime library is used.
if c.Host() {
diagSanitizers = sanitizers
}
// Determine the runtime library required
runtimeLibrary := ""
var extraStaticDeps []string