Skip to content

Commit

Permalink
bootstrap: Disable initial-exec TLS model on powerpc
Browse files Browse the repository at this point in the history
Fixes #81334.
  • Loading branch information
glaubitz committed May 31, 2021
1 parent dc08641 commit 283619c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/bootstrap/builder.rs
Original file line number Diff line number Diff line change
Expand Up @@ -1237,7 +1237,7 @@ impl<'a> Builder<'a> {
// efficient initial-exec TLS model. This doesn't work with `dlopen`,
// so we can't use it by default in general, but we can use it for tools
// and our own internal libraries.
if !mode.must_support_dlopen() {
if !mode.must_support_dlopen() && !target.triple.starts_with("powerpc-") {
rustflags.arg("-Ztls-model=initial-exec");
}

Expand Down

0 comments on commit 283619c

Please sign in to comment.