Skip to content

Commit 116157c

Browse files
committed
Auto merge of #45163 - sfackler:jemalloc-5, r=<try>
Upgrade jemalloc to 5.0.1 The build script needs to run autoconf which should be fine, right? We're building against 5.0.1 with jemalloc/jemalloc@0a4f5a7 cherry-picked on top. r? @alexcrichton
2 parents fbb5054 + 1d78cc2 commit 116157c

File tree

3 files changed

+9
-7
lines changed

3 files changed

+9
-7
lines changed

.travis.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ matrix:
1616
if: type = pull_request OR branch = auto
1717

1818
- env: IMAGE=dist-x86_64-linux DEPLOY=1
19-
if: branch = try OR branch = auto
19+
if: OR branch = auto
2020

2121
# "alternate" deployments, these are "nightlies" but don't have assertions
2222
# turned on, they're deployed to a different location primarily for projects
@@ -120,7 +120,7 @@ matrix:
120120
- env: IMAGE=dist-aarch64-linux DEPLOY=1
121121
if: branch = auto
122122
- env: IMAGE=dist-android DEPLOY=1
123-
if: branch = auto
123+
if: branch = auto OR branch = try
124124
- env: IMAGE=dist-arm-linux DEPLOY=1
125125
if: branch = auto
126126
- env: IMAGE=dist-armhf-linux DEPLOY=1

src/jemalloc

Submodule jemalloc updated 259 files

src/liballoc_jemalloc/build.rs

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -69,6 +69,10 @@ fn main() {
6969
let cflags = compiler.args()
7070
.iter()
7171
.map(|s| s.to_str().unwrap())
72+
.filter(|&s| {
73+
// separate function/data sections trigger errors with android's TLS emulation
74+
!target.contains("android") || (s != "-ffunction-sections" && s != "-fdata-sections")
75+
})
7276
.collect::<Vec<_>>()
7377
.join(" ");
7478

@@ -78,6 +82,7 @@ fn main() {
7882
.unwrap()
7983
.replace("C:\\", "/c/")
8084
.replace("\\", "/"))
85+
.arg("--disable-cxx")
8186
.current_dir(&native.out_dir)
8287
.env("CC", compiler.path())
8388
.env("EXTRA_CFLAGS", cflags.clone())
@@ -93,9 +98,7 @@ fn main() {
9398
.env("AR", &ar)
9499
.env("RANLIB", format!("{} s", ar.display()));
95100

96-
if target.contains("ios") {
97-
cmd.arg("--disable-tls");
98-
} else if target.contains("android") {
101+
if target.contains("android") {
99102
// We force android to have prefixed symbols because apparently
100103
// replacement of the libc allocator doesn't quite work. When this was
101104
// tested (unprefixed symbols), it was found that the `realpath`
@@ -106,7 +109,6 @@ fn main() {
106109
// If the test suite passes, however, without symbol prefixes then we
107110
// should be good to go!
108111
cmd.arg("--with-jemalloc-prefix=je_");
109-
cmd.arg("--disable-tls");
110112
} else if target.contains("dragonfly") || target.contains("musl") {
111113
cmd.arg("--with-jemalloc-prefix=je_");
112114
}

0 commit comments

Comments
 (0)