aboutsummaryrefslogtreecommitdiffstats
path: root/testing/rust/llvm-with-ffi.patch
blob: 23504eac715a694d6f1935c1816d43cfea113084 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
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. */