Skip to content

Commit 3f02d7f

Browse files
committed
Only produce fat object files when requested
1 parent ff4a123 commit 3f02d7f

File tree

1 file changed

+0
-3
lines changed

1 file changed

+0
-3
lines changed

src/back/write.rs

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -52,16 +52,13 @@ pub(crate) fn codegen(
5252
);
5353
}*/
5454

55-
// TODO: only emit if libgccjit is compiled with LTO enabled?
5655
if config.emit_bc || config.emit_obj == EmitObj::Bitcode {
5756
let _timer = cgcx
5857
.prof
5958
.generic_activity_with_arg("GCC_module_codegen_emit_bitcode", &*module.name);
6059
if lto_supported {
6160
context.add_command_line_option("-flto=auto");
6261
context.add_command_line_option("-flto-partition=one");
63-
// TODO(antoyo): remove since we don't want fat objects when it is for Bitcode only.
64-
context.add_command_line_option("-ffat-lto-objects");
6562
}
6663
context
6764
.compile_to_file(OutputKind::ObjectFile, bc_out.to_str().expect("path to str"));

0 commit comments

Comments
 (0)