Skip to content

Commit 315fbf7

Browse files
committedDec 1, 2017
Auto merge of #46211 - snipsco:master, r=pnkfelix
disable jemalloc on executables for ios targets This is a (temporary ?) workaround for issue #45262
2 parents d1364a6 + 3b18e29 commit 315fbf7

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed
 

‎src/librustc_back/target/apple_ios_base.rs

+4
Original file line numberDiff line numberDiff line change
@@ -99,6 +99,10 @@ pub fn opts(arch: Arch) -> Result<TargetOptions, String> {
9999
executables: true,
100100
pre_link_args,
101101
has_elf_tls: false,
102+
// The following line is a workaround for jemalloc 4.5 being broken on
103+
// ios. jemalloc 5.0 is supposed to fix this.
104+
// see https://github.com/rust-lang/rust/issues/45262
105+
exe_allocation_crate: None,
102106
.. super::apple_base::opts()
103107
})
104108
}

0 commit comments

Comments
 (0)
Please sign in to comment.