Skip to content

Commit 969449f

Browse files
committed
Don’t eliminate frame pointers on apple by default
1 parent 09d2db4 commit 969449f

File tree

2 files changed

+2
-0
lines changed

2 files changed

+2
-0
lines changed

src/librustc_target/spec/apple_ios_base.rs

+1
Original file line numberDiff line numberDiff line change
@@ -98,6 +98,7 @@ pub fn opts(arch: Arch) -> Result<TargetOptions, String> {
9898
executables: true,
9999
pre_link_args,
100100
has_elf_tls: false,
101+
eliminate_frame_pointer: false,
101102
// The following line is a workaround for jemalloc 4.5 being broken on
102103
// ios. jemalloc 5.0 is supposed to fix this.
103104
// see https://github.com/rust-lang/rust/issues/45262

src/librustc_target/spec/i686_apple_darwin.rs

+1
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,7 @@ pub fn target() -> TargetResult {
1616
base.max_atomic_width = Some(64);
1717
base.pre_link_args.insert(LinkerFlavor::Gcc, vec!["-m32".to_string()]);
1818
base.stack_probes = true;
19+
base.eliminate_frame_pointer = false;
1920

2021
Ok(Target {
2122
llvm_target: "i686-apple-darwin".to_string(),

0 commit comments

Comments
 (0)