Don’t eliminate frame pointers on apple by default
This commit is contained in:
parent
09d2db4e96
commit
969449f236
2 changed files with 2 additions and 0 deletions
|
@ -98,6 +98,7 @@ pub fn opts(arch: Arch) -> Result<TargetOptions, String> {
|
||||||
executables: true,
|
executables: true,
|
||||||
pre_link_args,
|
pre_link_args,
|
||||||
has_elf_tls: false,
|
has_elf_tls: false,
|
||||||
|
eliminate_frame_pointer: false,
|
||||||
// The following line is a workaround for jemalloc 4.5 being broken on
|
// The following line is a workaround for jemalloc 4.5 being broken on
|
||||||
// ios. jemalloc 5.0 is supposed to fix this.
|
// ios. jemalloc 5.0 is supposed to fix this.
|
||||||
// see https://github.com/rust-lang/rust/issues/45262
|
// see https://github.com/rust-lang/rust/issues/45262
|
||||||
|
|
|
@ -16,6 +16,7 @@ pub fn target() -> TargetResult {
|
||||||
base.max_atomic_width = Some(64);
|
base.max_atomic_width = Some(64);
|
||||||
base.pre_link_args.insert(LinkerFlavor::Gcc, vec!["-m32".to_string()]);
|
base.pre_link_args.insert(LinkerFlavor::Gcc, vec!["-m32".to_string()]);
|
||||||
base.stack_probes = true;
|
base.stack_probes = true;
|
||||||
|
base.eliminate_frame_pointer = false;
|
||||||
|
|
||||||
Ok(Target {
|
Ok(Target {
|
||||||
llvm_target: "i686-apple-darwin".to_string(),
|
llvm_target: "i686-apple-darwin".to_string(),
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue