Skip to content

Commit f478796

Browse files
committed
auto merge of #11955 : alexcrichton/rust/fix-unwinding-on-mac-64, r=cmr
I believe that this is leading to lots of failures on the bots. cc #11954
2 parents 237885c + e8e0cdd commit f478796

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

src/librustc/back/link.rs

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -96,6 +96,7 @@ pub mod write {
9696
use lib::llvm::llvm;
9797
use lib::llvm::{ModuleRef, TargetMachineRef, PassManagerRef};
9898
use lib;
99+
use syntax::abi;
99100
use util::common::time;
100101

101102
use std::c_str::ToCStr;
@@ -129,7 +130,10 @@ pub mod write {
129130
let use_softfp = sess.opts.debugging_opts & session::USE_SOFTFP != 0;
130131

131132
// FIXME: #11906: Omitting frame pointers breaks retrieving the value of a parameter.
132-
let no_fp_elim = sess.opts.debuginfo;
133+
// FIXME: #11954: mac64 unwinding may not work with fp elim
134+
let no_fp_elim = sess.opts.debuginfo ||
135+
(sess.targ_cfg.os == abi::OsMacos &&
136+
sess.targ_cfg.arch == abi::X86_64);
133137

134138
let tm = sess.targ_cfg.target_strs.target_triple.with_c_str(|T| {
135139
sess.opts.target_cpu.with_c_str(|CPU| {

0 commit comments

Comments
 (0)