bootstrap: Disable initial-exec TLS model on powerpc

Fixes #81334.
This commit is contained in:
John Paul Adrian Glaubitz 2021-05-29 12:38:46 +00:00
parent dc08641128
commit 283619cf5c

View File

@ -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");
}