mirror of
https://github.com/rust-lang/rust.git
synced 2024-11-27 09:14:20 +00:00
Don't force the fetch of main.o from main.a, we are not using main.a anymore.
This commit is contained in:
parent
2c16be424b
commit
d360c481e8
@ -8238,17 +8238,6 @@ fn trans_crate(&session::session sess, &@ast::crate crate,
|
||||
trans_mod(cx, crate.node.module);
|
||||
auto crate_map = create_crate_map(ccx);
|
||||
|
||||
if (!sess.get_opts().shared) {
|
||||
auto gvar = llvm::LLVMAddGlobal(cx.ccx.llmod, T_ptr(T_int()),
|
||||
str::buf("_rust_fetch_this_object_hack"));
|
||||
|
||||
auto gvar2 = llvm::LLVMAddGlobal(cx.ccx.llmod, T_ptr(T_ptr(T_int())),
|
||||
str::buf("_rust_fetch_this_object_hack2"));
|
||||
llvm::LLVMSetInitializer(gvar2, gvar);
|
||||
llvm::LLVMSetGlobalConstant(gvar, True);
|
||||
llvm::LLVMSetGlobalConstant(gvar2, True);
|
||||
}
|
||||
|
||||
emit_tydescs(ccx);
|
||||
|
||||
// Translate the metadata:
|
||||
|
Loading…
Reference in New Issue
Block a user