about summary refs log tree commit diff
path: root/src
diff options
context:
space:
mode:
authorSimonas Kazlauskas <git@kazlauskas.me>2018-03-24 21:54:21 +0200
committerSimonas Kazlauskas <git@kazlauskas.me>2018-05-01 10:44:44 +0300
commit969449f236bf8fe47b5bc90d4f02a3db00a80643 (patch)
tree27c2b60e787fb6d8f6ad35540b4f99a6e6077750 /src
parent09d2db4e963c6696f7c22386b6791e419ad75cfb (diff)
downloadrust-969449f236bf8fe47b5bc90d4f02a3db00a80643.tar.gz
rust-969449f236bf8fe47b5bc90d4f02a3db00a80643.zip
Don’t eliminate frame pointers on apple by default
Diffstat (limited to 'src')
-rw-r--r--src/librustc_target/spec/apple_ios_base.rs1
-rw-r--r--src/librustc_target/spec/i686_apple_darwin.rs1
2 files changed, 2 insertions, 0 deletions
diff --git a/src/librustc_target/spec/apple_ios_base.rs b/src/librustc_target/spec/apple_ios_base.rs
index acbbab313fe..46bb01e7c42 100644
--- a/src/librustc_target/spec/apple_ios_base.rs
+++ b/src/librustc_target/spec/apple_ios_base.rs
@@ -98,6 +98,7 @@ pub fn opts(arch: Arch) -> Result<TargetOptions, String> {
         executables: true,
         pre_link_args,
         has_elf_tls: false,
+        eliminate_frame_pointer: false,
         // The following line is a workaround for jemalloc 4.5 being broken on
         // ios. jemalloc 5.0 is supposed to fix this.
         // see https://github.com/rust-lang/rust/issues/45262
diff --git a/src/librustc_target/spec/i686_apple_darwin.rs b/src/librustc_target/spec/i686_apple_darwin.rs
index 06ea1e4649b..d17789dfcc0 100644
--- a/src/librustc_target/spec/i686_apple_darwin.rs
+++ b/src/librustc_target/spec/i686_apple_darwin.rs
@@ -16,6 +16,7 @@ pub fn target() -> TargetResult {
     base.max_atomic_width = Some(64);
     base.pre_link_args.insert(LinkerFlavor::Gcc, vec!["-m32".to_string()]);
     base.stack_probes = true;
+    base.eliminate_frame_pointer = false;
 
     Ok(Target {
         llvm_target: "i686-apple-darwin".to_string(),