From fa478c0234b451a8eb9b104136b93d78ffb8f00f Mon Sep 17 00:00:00 2001 From: Logan Chien Date: Fri, 28 Dec 2018 16:25:39 +0800 Subject: [PATCH] Do not build lsdump for APEX variants This commit stops building lsdump files for APEX variants since APEX variants are local to APEX modules themselves. Bug: 121986692 Test: make findlsdumps # compare $ANDROID_PRODUCT_OUT/lsdump_paths.txt Change-Id: I37fcd152d0d84d235a354ea53e53e808dd71464a --- cc/cc.go | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/cc/cc.go b/cc/cc.go index c3e554cbd..ce28a3bf4 100644 --- a/cc/cc.go +++ b/cc/cc.go @@ -634,6 +634,10 @@ func (ctx *moduleContextImpl) shouldCreateVndkSourceAbiDump() bool { // Host modules do not need ABI dumps. return false } + if !ctx.mod.IsForPlatform() { + // APEX variants do not need ABI dumps. + return false + } if inList(ctx.baseModuleName(), llndkLibraries) { return true }