You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: src/back/write.rs
+1-24Lines changed: 1 addition & 24 deletions
Original file line number
Diff line number
Diff line change
@@ -1,6 +1,6 @@
1
1
use std::{env, fs};
2
2
3
-
use gccjit::{Context,OutputKind};
3
+
use gccjit::OutputKind;
4
4
use rustc_codegen_ssa::back::link::ensure_removed;
5
5
use rustc_codegen_ssa::back::write::{BitcodeSection,CodegenContext,EmitObj,ModuleConfig};
6
6
use rustc_codegen_ssa::{CompiledModule,ModuleCodegen};
@@ -11,7 +11,6 @@ use rustc_log::tracing::debug;
11
11
use rustc_session::config::OutputType;
12
12
use rustc_target::spec::SplitDebuginfo;
13
13
14
-
usecrate::base::add_pic_option;
15
14
usecrate::errors::CopyBitcode;
16
15
usecrate::{GccContext,LtoMode};
17
16
@@ -148,7 +147,6 @@ pub(crate) fn codegen(
148
147
let path = obj_out.to_str().expect("path to str");
149
148
150
149
if fat_lto {
151
-
let lto_path = format!("{}.lto", path);
152
150
// cSpell:disable
153
151
// FIXME(antoyo): The LTO frontend generates the following warning:
154
152
// ../build_sysroot/sysroot_src/library/core/src/num/dec2flt/lemire.rs:150:15: warning: type of ‘_ZN4core3num7dec2flt5table17POWER_OF_FIVE_12817ha449a68fb31379e4E’ does not match original declaration [-Wlto-type-mismatch]
@@ -159,27 +157,6 @@ pub(crate) fn codegen(
159
157
// This option is to mute it to make the UI tests pass with LTO enabled.
0 commit comments