aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTreehugger Robot <android-test-infra-autosubmit@system.gserviceaccount.com>2023-11-09 02:01:55 +0000
committerAutomerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>2023-11-09 02:01:55 +0000
commit2e88e0dfde918d6c56c6aa302c8500df214a4e8f (patch)
tree5b2692132d0123514a51e03f263ccd694adc1735
parent83b977ddbdea589a8efd4831ef831675e16caa34 (diff)
parent3d13f0d86d3ace710f25b05e9060ce64c8cb7596 (diff)
downloadproc-macro2-2e88e0dfde918d6c56c6aa302c8500df214a4e8f.tar.gz
Merge "Adding autogenerated Trusty makefile rules" into main am: bb43521003 am: 15cf664bad am: 3d13f0d86d
Original change: https://android-review.googlesource.com/c/platform/external/rust/crates/proc-macro2/+/2753230 Change-Id: Iadb1b138e7e7956eca704c20de37b80bc2bb3e2e Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
-rw-r--r--cargo2rulesmk.json3
-rw-r--r--rules.mk22
2 files changed, 25 insertions, 0 deletions
diff --git a/cargo2rulesmk.json b/cargo2rulesmk.json
new file mode 100644
index 0000000..99d0b4b
--- /dev/null
+++ b/cargo2rulesmk.json
@@ -0,0 +1,3 @@
+{
+ "features": "default,span-locations"
+} \ No newline at end of file
diff --git a/rules.mk b/rules.mk
new file mode 100644
index 0000000..39075a8
--- /dev/null
+++ b/rules.mk
@@ -0,0 +1,22 @@
+# This file is generated by cargo2rulesmk.py --run --config cargo2rulesmk.json.
+# Do not modify this file as changes will be overridden on upgrade.
+
+LOCAL_DIR := $(GET_LOCAL_DIR)
+MODULE := $(LOCAL_DIR)
+MODULE_CRATE_NAME := proc_macro2
+MODULE_SRCS := \
+ $(LOCAL_DIR)/src/lib.rs \
+
+MODULE_RUST_EDITION := 2021
+MODULE_RUSTFLAGS += \
+ --cfg 'feature="default"' \
+ --cfg 'feature="proc-macro"' \
+ --cfg 'feature="span-locations"' \
+ --cfg 'proc_macro_span' \
+ --cfg 'span_locations' \
+ --cfg 'wrap_proc_macro' \
+
+MODULE_LIBRARY_DEPS := \
+ external/rust/crates/unicode-ident \
+
+include make/library.mk