Implement -Z function-sections=yes|no
This lets rustc users tweak whether all functions should be put in their own TEXT section, using whatever default value the target defines if the flag is missing.
This commit is contained in:
parent
53fa22a6fb
commit
056942215c
3 changed files with 5 additions and 1 deletions
|
@ -128,7 +128,8 @@ pub fn target_machine_factory(
|
|||
let (opt_level, _) = to_llvm_opt_settings(optlvl);
|
||||
let use_softfp = sess.opts.cg.soft_float;
|
||||
|
||||
let ffunction_sections = sess.target.options.function_sections;
|
||||
let ffunction_sections =
|
||||
sess.opts.debugging_opts.function_sections.unwrap_or(sess.target.options.function_sections);
|
||||
let fdata_sections = ffunction_sections;
|
||||
|
||||
let code_model = to_llvm_code_model(sess.code_model());
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue