Skip to content

Commit 283619c

Browse files
committed
bootstrap: Disable initial-exec TLS model on powerpc
Fixes #81334.
1 parent dc08641 commit 283619c

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
@@ -1237,7 +1237,7 @@ impl<'a> Builder<'a> {
12371237
// efficient initial-exec TLS model. This doesn't work with `dlopen`,
12381238
// so we can't use it by default in general, but we can use it for tools
12391239
// and our own internal libraries.
1240-
if !mode.must_support_dlopen() {
1240+
if !mode.must_support_dlopen() && !target.triple.starts_with("powerpc-") {
12411241
rustflags.arg("-Ztls-model=initial-exec");
12421242
}
12431243

0 commit comments

Comments
 (0)