aboutsummaryrefslogtreecommitdiffstats
path: root/testing/rust/llvm-with-ffi.patch
diff options
context:
space:
mode:
authorJakub Jirutka <jakub@jirutka.cz>2016-08-06 02:40:28 +0200
committerJakub Jirutka <jakub@jirutka.cz>2016-08-06 02:46:07 +0200
commit2a8472b921baf8c2ac35688df5188f034b526441 (patch)
treec1dd188efdfadc06ed3a5b518d27dc51f62f319b /testing/rust/llvm-with-ffi.patch
parente66941ed72d80c578ea9727851fb0cc2c65214e9 (diff)
downloadaports-2a8472b921baf8c2ac35688df5188f034b526441.tar.bz2
aports-2a8472b921baf8c2ac35688df5188f034b526441.tar.xz
testing/rust: new aport
http://www.rust-lang.org The Rust Programming Language
Diffstat (limited to 'testing/rust/llvm-with-ffi.patch')
-rw-r--r--testing/rust/llvm-with-ffi.patch19
1 files changed, 19 insertions, 0 deletions
diff --git a/testing/rust/llvm-with-ffi.patch b/testing/rust/llvm-with-ffi.patch
new file mode 100644
index 0000000000..23504eac71
--- /dev/null
+++ b/testing/rust/llvm-with-ffi.patch
@@ -0,0 +1,19 @@
+From: Jakub Jirutka <jakub@jirutka.cz>
+Date: Thu, 04 Aug 2016 17:53:00 +0200
+Subject: [PATCH] Workaround for external LLVM built with LLVM_ENABLE_FFI
+
+Workaround for problem with LLVM_ENABLE_FFI described in
+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 {}
+
++#[link(name = "ffi")]
++extern {}
++
+ #[linked_from = "rustllvm"] // not quite true but good enough
+ extern {
+ /* Create and destroy contexts. */