[llvm] [llvm] Set emulated-tls by default for x86_64-windows-gnu target (PR #79542)
via llvm-commits
llvm-commits at lists.llvm.org
Fri Jan 26 16:22:13 PST 2024
https://github.com/trcrsired updated https://github.com/llvm/llvm-project/pull/79542
>From ddc0229931dbf0e378aba4c263edc1676ccb6b19 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 49ec8de9c528de9..37076dbb6979e24 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();
}
/// True if the target supports both general-dynamic and TLSDESC, and TLSDESC
More information about the llvm-commits
mailing list