aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorThiƩbaud Weksteen <tweek@google.com>2021-01-12 15:26:32 +0100
committerThiƩbaud Weksteen <tweek@google.com>2021-01-12 16:05:08 +0100
commit8338d495f55dd382e52b4f533477c123c6f19409 (patch)
tree105b11804aeb0f9145691efc85a60b309f00f7bf
parent36fe69891d2f6c6bbf6d6bd09220076ff7d8cfe8 (diff)
downloadunicode-segmentation-8338d495f55dd382e52b4f533477c123c6f19409.tar.gz
Add std patch
Test: run external_updater and verify that the patch is applied Change-Id: Ia3f6420936423dda6f092e99e7e3d3bfafffac2e
-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..4ed51cb
--- /dev/null
+++ b/patches/std.diff
@@ -0,0 +1,13 @@
+diff --git a/src/lib.rs b/src/lib.rs
+index f2f2962..83f3a22 100644
+--- a/src/lib.rs
++++ b/src/lib.rs
+@@ -55,7 +55,7 @@
+
+ #![no_std]
+
+-#[cfg(test)]
++// ANDROID: Always import std to enable building as a dylib
+ #[macro_use]
+ extern crate std;
+