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

Commit ea0a2e19 authored by Jayant Chowdhary's avatar Jayant Chowdhary
Browse files

Disable abi diffs for sanitized variants of modules.

asan variants can sometimes have extra exported symbols (this is a vndk
extension violation). Since asan variants are only used for testing,
don't do abi diffs for them.

Bug: 66301104

Test: Without the change, libc++.so.lsdump exists for the asan variant;
      with the change, it does not.

Test: make -j64.

Change-Id: I61a4c7a3e9aa0028a54ad0ca8715e8c77aebad94
parent dcd33b6c
Loading
Loading
Loading
Loading
+6 −1
Original line number Diff line number Diff line
@@ -530,7 +530,12 @@ func (ctx *moduleContextImpl) isVndkExt() bool {

// Create source abi dumps if the module belongs to the list of VndkLibraries.
func (ctx *moduleContextImpl) createVndkSourceAbiDump() bool {
	return ctx.ctx.Device() && ((ctx.useVndk() && ctx.isVndk()) || inList(ctx.baseModuleName(), llndkLibraries))
	isUnsanitizedVariant := true
	sanitize := ctx.mod.sanitize
	if sanitize != nil {
		isUnsanitizedVariant = sanitize.isUnsanitizedVariant()
	}
	return isUnsanitizedVariant && ctx.ctx.Device() && ((ctx.useVndk() && ctx.isVndk()) || inList(ctx.baseModuleName(), llndkLibraries))
}

func (ctx *moduleContextImpl) selectedStl() string {