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

Commit 5b46a085 authored by Treehugger Robot's avatar Treehugger Robot Committed by Gerrit Code Review
Browse files

Merge "Add sanitizer runtime library to recovery when needed."

parents 89df00c2 98f5b064
Loading
Loading
Loading
Loading
+5 −2
Original line number Diff line number Diff line
@@ -576,9 +576,12 @@ func (sanitize *sanitize) flags(ctx ModuleContext, flags Flags) Flags {
		sanitize.runtimeLibrary = runtimeLibrary

		// When linking against VNDK, use the vendor variant of the runtime lib
		sanitize.androidMkRuntimeLibrary = sanitize.runtimeLibrary
		if ctx.useVndk() {
			sanitize.androidMkRuntimeLibrary = sanitize.runtimeLibrary + vendorSuffix
		} else if ctx.inRecovery() {
			sanitize.androidMkRuntimeLibrary = sanitize.runtimeLibrary + recoverySuffix
		} else {
			sanitize.androidMkRuntimeLibrary = sanitize.runtimeLibrary
		}
	}