summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMatthew Maurer <mmaurer@google.com>2021-08-23 21:03:56 +0000
committerAutomerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>2021-08-23 21:03:56 +0000
commit96e24f58e20ef11ca53bfdeeb0f0e0bac04a7556 (patch)
tree5f5065ae386a717e6380711b684df29ecabc46d9
parent591b69096a8474fb7214341ddcc198d60974a90d (diff)
parent79daa8afb722ca7191bcaf02b24940c6dfe6d061 (diff)
downloadrustc-demangle-capi-96e24f58e20ef11ca53bfdeeb0f0e0bac04a7556.tar.gz
Suppress cdylib build am: b5b10ef8fe am: 7c62370957 am: a719259c72 am: 2e6d79b944 am: 79daa8afb7
Original change: https://android-review.googlesource.com/c/platform/external/rust/crates/rustc-demangle-capi/+/1798340 Change-Id: I57e078196007f267fcab3f7901e0e4e27f6bb063
-rw-r--r--Cargo.toml2
-rw-r--r--patches/0001-Suppress-cdylib-build.patch30
2 files changed, 31 insertions, 1 deletions
diff --git a/Cargo.toml b/Cargo.toml
index 5828d25..9ab660e 100644
--- a/Cargo.toml
+++ b/Cargo.toml
@@ -20,6 +20,6 @@ repository = "https://github.com/alexcrichton/rustc-demangle"
[lib]
name = "rustc_demangle"
-crate-type = ["staticlib", "cdylib"]
+crate-type = ["staticlib"]
[dependencies.rustc-demangle]
version = "0.1.16"
diff --git a/patches/0001-Suppress-cdylib-build.patch b/patches/0001-Suppress-cdylib-build.patch
new file mode 100644
index 0000000..2524040
--- /dev/null
+++ b/patches/0001-Suppress-cdylib-build.patch
@@ -0,0 +1,30 @@
+From 8106a52ecca371216903fb7b5077409ee1d31ee0 Mon Sep 17 00:00:00 2001
+From: Matthew Maurer <mmaurer@google.com>
+Date: Mon, 16 Aug 2021 14:05:54 -0700
+Subject: [PATCH] Suppress cdylib build
+
+Currently, cdylibs aren't allowed in certain contexts until support for
+vendor snapshots is added. Since rustc-demangle-capi is needed in those
+environments, we prevent cdylib from being generated during the
+cargo2android scan.
+
+Change-Id: I1deb453a8095bc69f963e765b28333752ec483ff
+---
+ Cargo.toml | 2 +-
+ 1 file changed, 1 insertion(+), 1 deletion(-)
+
+diff --git a/Cargo.toml b/Cargo.toml
+index 5828d25..9ab660e 100644
+--- a/Cargo.toml
++++ b/Cargo.toml
+@@ -20,6 +20,6 @@ repository = "https://github.com/alexcrichton/rustc-demangle"
+
+ [lib]
+ name = "rustc_demangle"
+-crate-type = ["staticlib", "cdylib"]
++crate-type = ["staticlib"]
+ [dependencies.rustc-demangle]
+ version = "0.1.16"
+--
+2.33.0.rc1.237.g0d66db33f3-goog
+