diff options
author | 2020-09-25 18:47:38 -0700 | |
---|---|---|
committer | 2020-10-05 18:57:26 -0700 | |
commit | 565cafdcb1178c0d6804583546ecd8069439de0c (patch) | |
tree | 12fd723ac15bfaa4d33de1793a09b3bba6c15067 /cc | |
parent | 3146c5cd67f728375aa9bdfa3b0643895a32411e (diff) |
Don't create version variations of sdk modules
They are never used, skip creating them.
Test: m checkbuild
Change-Id: I4c8cd544327ae79b781f704be5a9064efdbdf2af
Diffstat (limited to 'cc')
-rw-r--r-- | cc/library.go | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/cc/library.go b/cc/library.go index 059e29b9c..b5bec952a 100644 --- a/cc/library.go +++ b/cc/library.go @@ -1545,14 +1545,16 @@ func CanBeOrLinkAgainstVersionVariants(module interface { Host() bool InRamdisk() bool InRecovery() bool + UseSdk() bool }) bool { - return !module.Host() && !module.InRamdisk() && !module.InRecovery() + return !module.Host() && !module.InRamdisk() && !module.InRecovery() && !module.UseSdk() } func CanBeVersionVariant(module interface { Host() bool InRamdisk() bool InRecovery() bool + UseSdk() bool CcLibraryInterface() bool Shared() bool Static() bool |