Skip to content

Commit

Permalink
Always explicitly set the preserve_frame_pointers value
Browse files Browse the repository at this point in the history
  • Loading branch information
bjorn3 committed Sep 21, 2023
1 parent c3fc9a4 commit 867975d
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -258,9 +258,9 @@ fn build_isa(sess: &Session, backend_config: &BackendConfig) -> Arc<dyn isa::Tar
let preserve_frame_pointer = sess.target.options.frame_pointer
!= rustc_target::spec::FramePointer::MayOmit
|| matches!(sess.opts.cg.force_frame_pointers, Some(true));
if preserve_frame_pointer {
flags_builder.set("preserve_frame_pointers", "true").unwrap();
}
flags_builder
.set("preserve_frame_pointers", if preserve_frame_pointer { "true" } else { "false" })
.unwrap();

let tls_model = match target_triple.binary_format {
BinaryFormat::Elf => "elf_gd",
Expand Down

0 comments on commit 867975d

Please sign in to comment.