Skip to content

Commit 352ad62

Browse files
authored
Rollup merge of #85807 - glaubitz:powerpc-disable-initial-exec-tls, r=Mark-Simulacrum
bootstrap: Disable initial-exec TLS model on powerpc Fixes #81334.
2 parents 4c29cc8 + 283619c commit 352ad62

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/bootstrap/builder.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -1291,7 +1291,7 @@ impl<'a> Builder<'a> {
12911291
// efficient initial-exec TLS model. This doesn't work with `dlopen`,
12921292
// so we can't use it by default in general, but we can use it for tools
12931293
// and our own internal libraries.
1294-
if !mode.must_support_dlopen() {
1294+
if !mode.must_support_dlopen() && !target.triple.starts_with("powerpc-") {
12951295
rustflags.arg("-Ztls-model=initial-exec");
12961296
}
12971297

0 commit comments

Comments
 (0)