aports/community/rust/llvm-with-ffi.patch
Jakub Jirutka 207941559d community/rust: upgrade to 1.26.0
Also switch to LLVM 5. Upstream switched right to LLVM 6, but we
don't have it yet.
2018-05-20 16:46:01 +02:00

17 lines
396 B
Diff

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
@@ -422,3 +422,6 @@
}
}
}
+
+#[link(name = "ffi")]
+extern {}