From 283619cf5ca25272b294525273ec42e9c7820edb Mon Sep 17 00:00:00 2001 From: John Paul Adrian Glaubitz Date: Sat, 29 May 2021 12:38:46 +0000 Subject: [PATCH] bootstrap: Disable initial-exec TLS model on powerpc Fixes #81334. --- src/bootstrap/builder.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/bootstrap/builder.rs b/src/bootstrap/builder.rs index 6750f7a549d..6032a685776 100644 --- a/src/bootstrap/builder.rs +++ b/src/bootstrap/builder.rs @@ -1299,7 +1299,7 @@ pub fn cargo( // 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() && !target.triple.starts_with("powerpc-") { + if !mode.must_support_dlopen() && !target.triple.starts_with("powerpc-") && !target.triple.starts_with("powerpcle-") { rustflags.arg("-Ztls-model=initial-exec"); }