1
0
Fork 0
mirror of https://gitlab.alpinelinux.org/alpine/aports.git synced 2025-07-24 03:35:38 +03:00
aports/testing/rust/llvm-with-ffi.patch
Jakub Jirutka 2a8472b921 testing/rust: new aport
http://www.rust-lang.org
The Rust Programming Language
2016-08-06 02:46:07 +02:00

19 lines
526 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
@@ -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. */