diff options
author | Matthew Maurer <mmaurer@google.com> | 2020-07-07 01:20:56 +0000 |
---|---|---|
committer | Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com> | 2020-07-07 01:20:56 +0000 |
commit | 747e0480982850f488fad07f0dee961bd4b9b5f7 (patch) | |
tree | 26f0a39254daeac4c3d03755d3a5f56af3542551 | |
parent | e0a8a7ec446437ea111368dbf2626a1b0d5c17db (diff) | |
parent | 4461f68aaa83d27da9191ce0a4e00362fd654f48 (diff) | |
download | paste-747e0480982850f488fad07f0dee961bd4b9b5f7.tar.gz |
Support building all variants. am: 24ff8fb0ac am: d66686cb99 am: 4461f68aaa
Original change: https://android-review.googlesource.com/c/platform/external/rust/crates/paste/+/1356130
Change-Id: I0d107e6418b6753bda3f09c2808278243488d343
-rw-r--r-- | Android.bp | 2 | ||||
-rw-r--r-- | src/lib.rs | 3 |
2 files changed, 4 insertions, 1 deletions
@@ -1,6 +1,6 @@ // This file is generated by cargo2android.py --run --device. -rust_library_rlib { +rust_library { name: "libpaste", host_supported: true, crate_name: "paste", @@ -137,6 +137,9 @@ #![no_std] +// ANDROID: Use std to allow building as a dylib. +extern crate std; + use proc_macro_hack::proc_macro_hack; /// Paste identifiers within a macro invocation that expands to an expression. |