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
// TODO(antoyo): Send -plugin/usr/lib/gcc/x86_64-pc-linux-gnu/11.1.0/liblto_plugin.so to linker (this should be done when specifying the appropriate rustc cli argument).
121
110
context.compile_to_file(
122
111
OutputKind::ObjectFile,
@@ -172,8 +161,6 @@ pub(crate) unsafe fn codegen(
172
161
// lto1: internal compiler error: decompressed stream: Destination buffer is too small
173
162
// TODO: since we do not do LTO when the linker is invoked anymore, perhaps
174
163
// the following flag is not necessary anymore.
175
-
// TODO: also, perhaps compiling the gcc driver in the CI is not necessary
// /usr/bin/ld: cannot find -lgcc_s: No such file or directory
183
170
context.add_driver_option("-nostdlib");
184
171
185
-
// NOTE: this doesn't actually generate an executable. With the above flags, it combines the .o files together in another .o.
186
-
// FIXME FIXME: this produces an object file with GIMPLE IR, but it should
187
-
// produce an object file with machine code.
188
-
//println!("LTO-ed object file: {:?}", obj_out);
189
-
/*context.compile_to_file(
190
-
OutputKind::Executable,
191
-
obj_out.to_str().expect("path to str"),
192
-
);*/
193
-
194
172
let path = obj_out.to_str().expect("path to str");
195
173
196
174
let lto_path = format!("{}.lto", path);
197
-
//eprintln!("Before Executable");
198
-
// FIXME: The LTO frontend generates the following warning:
175
+
// FIXME(antoyo): The LTO frontend generates the following warning:
199
176
// ../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]
200
177
// 150 | let (lo5, hi5) = POWER_OF_FIVE_128[index];
201
178
// | ^
202
179
// lto1: note: ‘_ZN4core3num7dec2flt5table17POWER_OF_FIVE_12817ha449a68fb31379e4E’ was previously declared here
203
180
//
204
181
// This option is to mute it to make the UI tests pass with LTO enabled.
0 commit comments