recipes: devel/rust: Downgraded to version 1.64.0
[dragora.git] / patches / rust / void / 0012-bootstrap-Disable-initial-exec-TLS-model-on-powerpc.patch
blob7b1ba46b1f2ba23b2d790cac8bb4720890494d04
1 From 4b803b211f765f6c6b18223e23670dbf754a980f Mon Sep 17 00:00:00 2001
2 From: John Paul Adrian Glaubitz <glaubitz@physik.fu-berlin.de>
3 Date: Sat, 29 May 2021 12:38:46 +0000
4 Subject: [PATCH 12/15] bootstrap: Disable initial-exec TLS model on powerpc
6 Fixes #81334.
7 ---
8 src/bootstrap/builder.rs | 2 +-
9 1 file changed, 1 insertion(+), 1 deletion(-)
11 diff --git a/src/bootstrap/builder.rs b/src/bootstrap/builder.rs
12 index 554dd4188..6a02a225c 100644
13 --- a/src/bootstrap/builder.rs
14 +++ b/src/bootstrap/builder.rs
15 @@ -1844,7 +1844,7 @@ impl<'a> Builder<'a> {
16 // efficient initial-exec TLS model. This doesn't work with `dlopen`,
17 // so we can't use it by default in general, but we can use it for tools
18 // and our own internal libraries.
19 - if !mode.must_support_dlopen() && !target.triple.starts_with("powerpc-") {
20 + if !mode.must_support_dlopen() && !target.triple.starts_with("powerpc-") && !target.triple.starts_with("powerpcle-") {
21 rustflags.arg("-Ztls-model=initial-exec");
24 --
25 2.37.2