aboutsummaryrefslogtreecommitdiff
path: root/cc/sabi.go
diff options
context:
space:
mode:
authorInseob Kim <inseob@google.com>2019-05-09 10:56:13 +0900
committerInseob Kim <inseob@google.com>2019-05-09 12:29:58 +0900
commit9516ee9556f7ebc1bd9c5adb836eea2268a09392 (patch)
treeb6d981f9006c62173769afc3d5e1b110155cac58 /cc/sabi.go
parentffff95bc4e22f22ab973951af6403da77284fbca (diff)
downloadsoong-9516ee9556f7ebc1bd9c5adb836eea2268a09392.tar.gz
Attach global variables to Context
Global variables make testing difficult, and they should attached to Context. Bug: N/A Test: m Change-Id: Ic671dda755e99d036c7ddce0eed114496374d7ec
Diffstat (limited to 'cc/sabi.go')
-rw-r--r--cc/sabi.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/cc/sabi.go b/cc/sabi.go
index 4a8649945..451176f1b 100644
--- a/cc/sabi.go
+++ b/cc/sabi.go
@@ -78,7 +78,7 @@ func (sabimod *sabi) flags(ctx ModuleContext, flags Flags) Flags {
func sabiDepsMutator(mctx android.TopDownMutatorContext) {
if c, ok := mctx.Module().(*Module); ok &&
- ((c.isVndk() && c.useVndk()) || inList(c.Name(), llndkLibraries) ||
+ ((c.isVndk() && c.useVndk()) || inList(c.Name(), *llndkLibraries(mctx.Config())) ||
(c.sabi != nil && c.sabi.Properties.CreateSAbiDumps)) {
mctx.VisitDirectDeps(func(m android.Module) {
tag := mctx.OtherModuleDependencyTag(m)