about summary refs log tree commit diff
path: root/src
diff options
context:
space:
mode:
authorJohn Paul Adrian Glaubitz <glaubitz@physik.fu-berlin.de>2021-05-29 12:38:46 +0000
committerJohn Paul Adrian Glaubitz <glaubitz@physik.fu-berlin.de>2021-05-31 08:21:28 +0000
commit283619cf5ca25272b294525273ec42e9c7820edb (patch)
treefdaa1d8db3721ce926faf88ceb69cf520813a44e /src
parentdc08641128737ee0832bb61f24fe9212ca000f32 (diff)
downloadrust-283619cf5ca25272b294525273ec42e9c7820edb.tar.gz
rust-283619cf5ca25272b294525273ec42e9c7820edb.zip
bootstrap: Disable initial-exec TLS model on powerpc
Fixes #81334.
Diffstat (limited to 'src')
-rw-r--r--src/bootstrap/builder.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/bootstrap/builder.rs b/src/bootstrap/builder.rs
index f39e89a9d01..061d7ed5ee0 100644
--- a/src/bootstrap/builder.rs
+++ b/src/bootstrap/builder.rs
@@ -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");
         }