Skip to content

Instantly share code, notes, and snippets.

What would you like to do?
Quick workaround for "undefined reference to `ffi_type_float'" when building nightly Rust with LLVM 4.0
diff --git a/src/librustc_llvm/ b/src/librustc_llvm/
index ba56885..547f684 100644
--- a/src/librustc_llvm/
+++ b/src/librustc_llvm/
@@ -219,6 +219,7 @@ fn main() {
println!("cargo:rustc-link-lib={}={}", kind, name);
+ println!("cargo:rustc-link-lib=dylib=ffi");
// LLVM ldflags
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.