From fcb344799a5548850155bbfdc0085044f43b43e0 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Rafael=20=C3=81vila=20de=20Esp=C3=ADndola?= Date: Mon, 11 Apr 2011 15:49:45 -0400 Subject: [PATCH] Add a hack to force the linker to fetch Object.o --- src/rustllvm/RustWrapper.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/rustllvm/RustWrapper.cpp b/src/rustllvm/RustWrapper.cpp index a604e4c29c5..34346914940 100644 --- a/src/rustllvm/RustWrapper.cpp +++ b/src/rustllvm/RustWrapper.cpp @@ -29,3 +29,5 @@ extern "C" const char *LLVMRustGetLastError(void) { return LLVMRustError; } +LLVMOpaqueObjectFile* (*RustHackToFetchObjectO)(LLVMOpaqueMemoryBuffer*) + = LLVMCreateObjectFile;