We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent ff4a123 commit 3f02d7fCopy full SHA for 3f02d7f
src/back/write.rs
@@ -52,16 +52,13 @@ pub(crate) fn codegen(
52
);
53
}*/
54
55
- // TODO: only emit if libgccjit is compiled with LTO enabled?
56
if config.emit_bc || config.emit_obj == EmitObj::Bitcode {
57
let _timer = cgcx
58
.prof
59
.generic_activity_with_arg("GCC_module_codegen_emit_bitcode", &*module.name);
60
if lto_supported {
61
context.add_command_line_option("-flto=auto");
62
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");
65
}
66
context
67
.compile_to_file(OutputKind::ObjectFile, bc_out.to_str().expect("path to str"));
0 commit comments