Skip to content

Commit fcb3447

Browse files
committed
Add a hack to force the linker to fetch Object.o
1 parent cca6335 commit fcb3447

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

src/rustllvm/RustWrapper.cpp

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -29,3 +29,5 @@ extern "C" const char *LLVMRustGetLastError(void) {
2929
return LLVMRustError;
3030
}
3131

32+
LLVMOpaqueObjectFile* (*RustHackToFetchObjectO)(LLVMOpaqueMemoryBuffer*)
33+
= LLVMCreateObjectFile;

0 commit comments

Comments
 (0)