aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMatthew Maurer <mmaurer@google.com>2019-11-14 10:44:45 -0800
committerandroid-build-merger <android-build-merger@google.com>2019-11-14 10:44:45 -0800
commit9677cb22d7263e24f16960031d1061f198722060 (patch)
tree92e81746ddec21e664fd08f98fb387217844b7d0
parent1bc0aac6beb6b78fdce1b442f1a3209d0e018dd1 (diff)
parentaacdcaa0b0950df55761e2a08025c8b9e682d953 (diff)
downloadproc-macro2-9677cb22d7263e24f16960031d1061f198722060.tar.gz
Make crates depending on proc-macro host-only
am: aacdcaa0b0 Change-Id: I064e5956ab60780a86b33c09f449468aac0401b7
-rw-r--r--Android.bp9
1 files changed, 3 insertions, 6 deletions
diff --git a/Android.bp b/Android.bp
index 13c7d88..df5e2a6 100644
--- a/Android.bp
+++ b/Android.bp
@@ -1,8 +1,7 @@
// This file is generated by cargo2android.py.
-rust_library_rlib {
+rust_library_host_rlib {
name: "libproc_macro2",
- host_supported: true,
crate_name: "proc_macro2",
srcs: ["src/lib.rs"],
edition: "2018",
@@ -20,9 +19,8 @@ rust_library_rlib {
],
}
-rust_test {
+rust_test_host {
name: "proc-macro2_test_src_lib",
- host_supported: true,
crate_name: "proc_macro2",
srcs: ["src/lib.rs"],
relative_install_path: "rust/proc-macro2",
@@ -42,9 +40,8 @@ rust_test {
],
}
-rust_test {
+rust_test_host {
name: "proc-macro2_tests_test",
- host_supported: true,
crate_name: "proc_macro2",
srcs: [
"tests/features.rs",