summaryrefslogtreecommitdiff
path: root/patches
diff options
context:
space:
mode:
authorJeff Vander Stoep <jeffv@google.com>2020-12-21 09:44:12 +0100
committerJeff Vander Stoep <jeffv@google.com>2020-12-21 09:44:12 +0100
commit307e57dab6b98fbcf834c7051db8bdcefb218e8d (patch)
treeb552acd95e6c887e310f6fc1953495e7c959698c /patches
parente27fd4bfe992f057689a1c972b7ead1846bad8f2 (diff)
downloadtinyvec_macros-307e57dab6b98fbcf834c7051db8bdcefb218e8d.tar.gz
Add Android.bp
Test: mm Test: atest Change-Id: I2424638529d0a6553e9039357e78083b677e92eb
Diffstat (limited to 'patches')
-rw-r--r--patches/std.diff13
1 files changed, 13 insertions, 0 deletions
diff --git a/patches/std.diff b/patches/std.diff
new file mode 100644
index 0000000..89735b5
--- /dev/null
+++ b/patches/std.diff
@@ -0,0 +1,13 @@
+diff --git a/src/lib.rs b/src/lib.rs
+index 4790e08..b1896fb 100644
+--- a/src/lib.rs
++++ b/src/lib.rs
+@@ -1,5 +1,8 @@
+ #![no_std]
+
++// ANDROID: Unconditionally use std to allow building as a dylib.
++extern crate std;
++
+ #[macro_export]
+ macro_rules! impl_mirrored {
+ {