diff options
author | Jeff Vander Stoep <jeffv@google.com> | 2021-03-12 09:35:35 +0100 |
---|---|---|
committer | Jeff Vander Stoep <jeffv@google.com> | 2021-03-12 09:35:56 +0100 |
commit | 04289e0df20c22869273a6ad4fe576bc0aca574a (patch) | |
tree | f94afd6badf2d98af951c8730edc928faad14d5f | |
parent | 45c9853f4a16afdafe7600ede478eaea4d504a44 (diff) | |
download | num-traits-04289e0df20c22869273a6ad4fe576bc0aca574a.tar.gz |
Make num-traits available to virt apex
Bug: 178531428
Change-Id: Ic9c1b331e4a3fc6f79bb85953ae8770b2d7972cb
-rw-r--r-- | Android.bp | 6 | ||||
-rw-r--r-- | patches/Android.bp.patch | 15 |
2 files changed, 20 insertions, 1 deletions
@@ -1,4 +1,4 @@ -// This file is generated by cargo2android.py --device --run --dependencies --tests. +// This file is generated by cargo2android.py --device --run --dependencies --tests --patch=patches/Android.bp.patch. package { default_applicable_licenses: ["external_rust_crates_num-traits_license"], @@ -46,6 +46,10 @@ rust_library { "default", "std", ], + apex_available: [ + "//apex_available:platform", + "com.android.virt", + ], flags: [ "--cfg has_i128", "--cfg has_to_int_unchecked", diff --git a/patches/Android.bp.patch b/patches/Android.bp.patch new file mode 100644 index 0000000..b61b82c --- /dev/null +++ b/patches/Android.bp.patch @@ -0,0 +1,15 @@ +diff --git a/Android.bp b/Android.bp +index 5abab3c..b920d56 100644 +--- a/Android.bp ++++ b/Android.bp +@@ -46,6 +46,10 @@ rust_library { + "default", + "std", + ], ++ apex_available: [ ++ "//apex_available:platform", ++ "com.android.virt", ++ ], + flags: [ + "--cfg has_i128", + "--cfg has_to_int_unchecked", |