We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent a767a10 commit 65c5c7fCopy full SHA for 65c5c7f
src/driver/aot.rs
@@ -333,10 +333,7 @@ fn make_module(sess: &Session, name: String) -> UnwindModule<ObjectModule> {
333
334
let mut builder =
335
ObjectBuilder::new(isa, name + ".o", cranelift_module::default_libcall_names()).unwrap();
336
- // Unlike cg_llvm, cg_clif defaults to disabling -Zfunction-sections. For cg_llvm binary size
337
- // is important, while cg_clif cares more about compilation times. Enabling -Zfunction-sections
338
- // can easily double the amount of time necessary to perform linking.
339
- builder.per_function_section(sess.opts.unstable_opts.function_sections.unwrap_or(false));
+ builder.per_function_section(sess.opts.unstable_opts.function_sections.unwrap_or(true));
340
UnwindModule::new(ObjectModule::new(builder), true)
341
}
342
0 commit comments