diff options
author | Tomohiro Kashiwada <kikairoya@gmail.com> | 2025-05-15 04:21:09 +0900 |
---|---|---|
committer | GitHub <noreply@github.com> | 2025-05-14 22:21:09 +0300 |
commit | 76d866f7935b746e5e50e7d760344c14502bd8e7 (patch) | |
tree | 5931ea59a768787c1e28f6f94d921e75c0f0ec40 /clang/lib/CodeGen/CodeGenModule.cpp | |
parent | e1b3af6dc4362c5281abf255c4078992ce64ad33 (diff) | |
download | llvm-76d866f7935b746e5e50e7d760344c14502bd8e7.zip llvm-76d866f7935b746e5e50e7d760344c14502bd8e7.tar.gz llvm-76d866f7935b746e5e50e7d760344c14502bd8e7.tar.bz2 |
[Cygwin] Global symbols should be external by default (#139797)
Behaves as same as both of Clang and GCC targetting MinGW. Required for
compatibility for Cygwin-GCC.
Divided from https://github.com/llvm/llvm-project/pull/138773
Diffstat (limited to 'clang/lib/CodeGen/CodeGenModule.cpp')
-rw-r--r-- | clang/lib/CodeGen/CodeGenModule.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/clang/lib/CodeGen/CodeGenModule.cpp b/clang/lib/CodeGen/CodeGenModule.cpp index 50041f8..16e010a 100644 --- a/clang/lib/CodeGen/CodeGenModule.cpp +++ b/clang/lib/CodeGen/CodeGenModule.cpp @@ -1689,7 +1689,7 @@ static bool shouldAssumeDSOLocal(const CodeGenModule &CGM, const llvm::Triple &TT = CGM.getTriple(); const auto &CGOpts = CGM.getCodeGenOpts(); - if (TT.isWindowsGNUEnvironment()) { + if (TT.isOSCygMing()) { // In MinGW, variables without DLLImport can still be automatically // imported from a DLL by the linker; don't mark variables that // potentially could come from another DLL as DSO local. |