commit | 624dec0b0311397c975ffd85bdd64f91cac92c73 | [log] [tgz] |
---|---|---|
author | Treehugger Robot <treehugger-gerrit@google.com> | Mon Apr 13 04:05:31 2020 +0000 |
committer | Gerrit Code Review <noreply-gerritcodereview@google.com> | Mon Apr 13 04:05:31 2020 +0000 |
tree | ae2a04b0dfd7b3bf2d02598489c4d4240e1431b9 | |
parent | aba65adbbfc6ac70456284bab2e45cd574684499 [diff] | |
parent | ea97f51a2901d1285132f4e7c6ad169e5d68da71 [diff] |
Merge "Don't allow a lib having stubs to become a member of VNDK"
diff --git a/cc/vndk.go b/cc/vndk.go index 1244b13..dbe1f3b 100644 --- a/cc/vndk.go +++ b/cc/vndk.go
@@ -309,6 +309,10 @@ panic(err) } + if m.HasStubsVariants() { + mctx.PropertyErrorf("vndk.enabled", "This library provides stubs. Shouldn't be VNDK. Consider making it as LLNDK") + } + vndkLibrariesLock.Lock() defer vndkLibrariesLock.Unlock()