aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorandroid-build-team Robot <android-build-team-robot@google.com>2021-05-07 00:33:59 +0000
committerandroid-build-team Robot <android-build-team-robot@google.com>2021-05-07 00:33:59 +0000
commita6ea5ce58f436d73408ba17732a6ad9f5e15e537 (patch)
tree3ed4f71564f78fb702412335da032629712bf1f3
parentae2bd84a0a9a7f6ed1ac8a6f12618c2758195a4d (diff)
parent7728b23a4c8c9fe64126df78c24d366aad6720cb (diff)
downloadsmallvec-android12--mainline-release.tar.gz
Snap for 7343852 from 7728b23a4c8c9fe64126df78c24d366aad6720cb to sc-mainline-releaseandroid-mainline-12.0.0_r4android-mainline-12.0.0_r36android12--mainline-release
Change-Id: Iff9f55d68e9337a577c4418644001ad4617c9af1
-rw-r--r--Android.bp7
-rw-r--r--patches/Android.bp.patch13
2 files changed, 19 insertions, 1 deletions
diff --git a/Android.bp b/Android.bp
index e99d7e0..cdf2b8d 100644
--- a/Android.bp
+++ b/Android.bp
@@ -1,4 +1,5 @@
-// This file is generated by cargo2android.py --device --run --dependencies.
+// This file is generated by cargo2android.py --device --run --dependencies --patch=patches/Android.bp.patch.
+// Do not modify this file as changes will be overridden on upgrade.
package {
default_applicable_licenses: ["external_rust_crates_smallvec_license"],
@@ -42,4 +43,8 @@ rust_library {
crate_name: "smallvec",
srcs: ["src/lib.rs"],
edition: "2018",
+ apex_available: [
+ "//apex_available:platform",
+ "com.android.virt",
+ ],
}
diff --git a/patches/Android.bp.patch b/patches/Android.bp.patch
new file mode 100644
index 0000000..5943f32
--- /dev/null
+++ b/patches/Android.bp.patch
@@ -0,0 +1,13 @@
+diff --git a/Android.bp b/Android.bp
+index e99d7e0..12fdabd 100644
+--- a/Android.bp
++++ b/Android.bp
+@@ -42,4 +42,8 @@ rust_library {
+ crate_name: "smallvec",
+ srcs: ["src/lib.rs"],
+ edition: "2018",
++ apex_available: [
++ "//apex_available:platform",
++ "com.android.virt",
++ ],
+ }