diff options
author | jeremyd2019 <github@jdrake.com> | 2025-07-29 10:01:04 -0700 |
---|---|---|
committer | GitHub <noreply@github.com> | 2025-07-29 10:01:04 -0700 |
commit | 28b319005371afa1392fb405c53139c4ae2b3066 (patch) | |
tree | cdebd122322f6176f74cc55f884412e8cffba47a /llvm/tools/llvm-rc/llvm-rc.cpp | |
parent | dc6d7f0637e7c80e39e8b7f0e8b61515b4961b0f (diff) | |
download | llvm-28b319005371afa1392fb405c53139c4ae2b3066.zip llvm-28b319005371afa1392fb405c53139c4ae2b3066.tar.gz llvm-28b319005371afa1392fb405c53139c4ae2b3066.tar.bz2 |
[LLVM][Cygwin] Enable conditions that are shared with MinGW (#149638)
Cygwin and MinGW share the auto import behavior that could result in
__stack_check_guard being non-dso-local. Allow windres to assume a
Cygwin target as well as a MinGW one, so defines like _WIN32 would not
be present on Cygwin.
Diffstat (limited to 'llvm/tools/llvm-rc/llvm-rc.cpp')
-rw-r--r-- | llvm/tools/llvm-rc/llvm-rc.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/llvm/tools/llvm-rc/llvm-rc.cpp b/llvm/tools/llvm-rc/llvm-rc.cpp index 7362154..f623342 100644 --- a/llvm/tools/llvm-rc/llvm-rc.cpp +++ b/llvm/tools/llvm-rc/llvm-rc.cpp @@ -201,7 +201,7 @@ std::string getMingwTriple() { Triple T(sys::getDefaultTargetTriple()); if (!isUsableArch(T.getArch())) T.setArch(getDefaultFallbackArch()); - if (T.isWindowsGNUEnvironment()) + if (T.isOSCygMing()) return T.str(); // Write out the literal form of the vendor/env here, instead of // constructing them with enum values (which end up with them in |