diff options
author | 2020-07-10 00:14:03 +0100 | |
---|---|---|
committer | 2020-07-11 00:38:24 +0100 | |
commit | 1e9c2677fdb3f1d615863d87c64ad9ea2fc9007b (patch) | |
tree | 97c483c436221d6af5d55f32eb2e71e71e939ba1 /android/sdk.go | |
parent | 235e2fdbd3fcde27c432616d3ada8da914bf3f92 (diff) |
Add compile_multilib properties to all native prebuilts.
There was a special case in cc_prebuilt_binary only, which resulted in
prebuilt libraries getting both 32 and 64 bit variants even when their
sources only had one of them, and the other variant would be defunct
since it wouldn't get any prebuilt artefact.
This moves the handling of compile_multilib completely to the common
update code, so that SDK members don't need to deal with it. It doesn't
take SDK member defaults into account, which means a bit more
boilerplate in the snapshots, but it's simpler and less error prone
(different SDK member types have different defaults).
Bug: 151303681
Test: m nothing
Test: build/soong/scripts/build-aml-prebuilts.sh art-module-host-exports
Check that the generated Android.bp passes Soong.
Change-Id: Ib73444c6788ee1c78480bdb103aa2b8ae8f2c63c
Diffstat (limited to 'android/sdk.go')
-rw-r--r-- | android/sdk.go | 7 |
1 files changed, 2 insertions, 5 deletions
diff --git a/android/sdk.go b/android/sdk.go index 8115b690b..2c38f564c 100644 --- a/android/sdk.go +++ b/android/sdk.go @@ -466,8 +466,7 @@ func RegisterSdkMemberType(memberType SdkMemberType) { // Base structure for all implementations of SdkMemberProperties. // -// Contains common properties that apply across many different member types. These -// are not affected by the optimization to extract common values. +// Contains common properties that apply across many different member types. type SdkMemberPropertiesBase struct { // The number of unique os types supported by the member variants. // @@ -489,9 +488,7 @@ type SdkMemberPropertiesBase struct { Os OsType `sdk:"keep"` // The setting to use for the compile_multilib property. - // - // This property is set after optimization so there is no point in trying to optimize it. - Compile_multilib string `sdk:"keep"` + Compile_multilib string `android:"arch_variant"` } // The os prefix to use for any file paths in the sdk. |