aboutsummaryrefslogtreecommitdiffstats
path: root/testing/rust/llvm-with-ffi.patch
diff options
context:
space:
mode:
Diffstat (limited to 'testing/rust/llvm-with-ffi.patch')
-rw-r--r--testing/rust/llvm-with-ffi.patch13
1 files changed, 5 insertions, 8 deletions
diff --git a/testing/rust/llvm-with-ffi.patch b/testing/rust/llvm-with-ffi.patch
index 23504eac71..f8c9cdf13a 100644
--- a/testing/rust/llvm-with-ffi.patch
+++ b/testing/rust/llvm-with-ffi.patch
@@ -7,13 +7,10 @@ https://github.com/rust-lang/rust/issues/34486.
--- a/src/librustc_llvm/lib.rs
+++ b/src/librustc_llvm/lib.rs
-@@ -577,6 +577,9 @@
- #[cfg(not(cargobuild))]
- extern {}
-
+@@ -481,3 +481,6 @@
+ mod llvmdeps {
+ include! { env!("CFG_LLVM_LINKAGE_FILE") }
+ }
++
+#[link(name = "ffi")]
+extern {}
-+
- #[linked_from = "rustllvm"] // not quite true but good enough
- extern {
- /* Create and destroy contexts. */