[Lldb-commits] [flang] [lldb] [clang] [libcxxabi] [libc] [llvm] [compiler-rt] [lld] [clang-tools-extra] [libcxx] [llvm] Set emulated-tls by default for x86_64-windows-gnu target (PR #79542)

via lldb-commits lldb-commits at lists.llvm.org
Fri Jan 26 16:21:45 PST 2024


https://github.com/trcrsired updated https://github.com/llvm/llvm-project/pull/79542

>From 1039a36b2891f72192e77f2ef96736b1ab4315d8 Mon Sep 17 00:00:00 2001
From: trcrsired <uwgghhbcad at gmail.com>
Date: Thu, 25 Jan 2024 21:47:43 -0500
Subject: [PATCH] [llvm] set emulated-tls by default for MinGW

x86_64-windows-gnu target by default enables emulated-tls on gcc,
we should do the same
---
 llvm/include/llvm/TargetParser/Triple.h | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/llvm/include/llvm/TargetParser/Triple.h b/llvm/include/llvm/TargetParser/Triple.h
index 870dc75b1c1f80f..2452ee58e1e807e 100644
--- a/llvm/include/llvm/TargetParser/Triple.h
+++ b/llvm/include/llvm/TargetParser/Triple.h
@@ -1030,7 +1030,7 @@ class Triple {
   /// Note: Android API level 29 (10) introduced ELF TLS.
   bool hasDefaultEmulatedTLS() const {
     return (isAndroid() && isAndroidVersionLT(29)) || isOSOpenBSD() ||
-           isWindowsCygwinEnvironment() || isOHOSFamily();
+           isOSCygMing() || isOHOSFamily();
   }
 
   /// Tests whether the target uses TLS Descriptor by default.



More information about the lldb-commits mailing list