diff options
author | Matthew Maurer <mmaurer@google.com> | 2020-07-07 00:50:55 +0000 |
---|---|---|
committer | Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com> | 2020-07-07 00:50:55 +0000 |
commit | 4461f68aaa83d27da9191ce0a4e00362fd654f48 (patch) | |
tree | 26f0a39254daeac4c3d03755d3a5f56af3542551 | |
parent | 3c0300f24692e3c78c6243d55e833f1f7faec434 (diff) | |
parent | d66686cb99df3456a73c7de29b03fcd4e91e1a69 (diff) | |
download | paste-4461f68aaa83d27da9191ce0a4e00362fd654f48.tar.gz |
Support building all variants. am: 24ff8fb0ac am: d66686cb99
Original change: https://android-review.googlesource.com/c/platform/external/rust/crates/paste/+/1356130
Change-Id: I443bd71896430a727ea40d9d660627e794747ecd
-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. |