Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit ea0006fc authored by Ivan Lozano's avatar Ivan Lozano Committed by Gerrit Code Review
Browse files

Merge "Fix UBSanitized host binaries missing runtime."

parents 001ca325 f3b190f8
Loading
Loading
Loading
Loading
+5 −0
Original line number Diff line number Diff line
@@ -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