cg_clif: Define build opts from FramePointer
This commit is contained in:
parent
e79dc7656a
commit
f1052eb253
@ -271,9 +271,9 @@ fn build_isa(sess: &Session, backend_config: &BackendConfig) -> Arc<dyn TargetIs
|
|||||||
flags_builder.set("enable_verifier", enable_verifier).unwrap();
|
flags_builder.set("enable_verifier", enable_verifier).unwrap();
|
||||||
flags_builder.set("regalloc_checker", enable_verifier).unwrap();
|
flags_builder.set("regalloc_checker", enable_verifier).unwrap();
|
||||||
|
|
||||||
let preserve_frame_pointer = sess.target.options.frame_pointer
|
let mut frame_ptr = sess.target.options.frame_pointer.clone();
|
||||||
!= rustc_target::spec::FramePointer::MayOmit
|
frame_ptr.ratchet(sess.opts.cg.force_frame_pointers);
|
||||||
|| matches!(sess.opts.cg.force_frame_pointers, Some(true));
|
let preserve_frame_pointer = frame_ptr != rustc_target::spec::FramePointer::MayOmit;
|
||||||
flags_builder
|
flags_builder
|
||||||
.set("preserve_frame_pointers", if preserve_frame_pointer { "true" } else { "false" })
|
.set("preserve_frame_pointers", if preserve_frame_pointer { "true" } else { "false" })
|
||||||
.unwrap();
|
.unwrap();
|
||||||
|
Loading…
Reference in New Issue
Block a user