[llvm] [Cygwin] Fix global variable dll import (PR #121439)
via llvm-commits
llvm-commits at lists.llvm.org
Wed Jan 1 09:11:23 PST 2025
================
@@ -204,7 +204,8 @@ bool TargetMachine::shouldAssumeDSOLocal(const GlobalValue *GV) const {
// don't assume the variables to be DSO local unless we actually know
// that for sure. This only has to be done for variables; for functions
// the linker can insert thunks for calling functions from another DLL.
- if (TT.isWindowsGNUEnvironment() && GV->isDeclarationForLinker() &&
+ if ((TT.isWindowsGNUEnvironment() || TT.isWindowsCygwinEnvironment()) &&
----------------
Berrysoft wrote:
Fixed.
https://github.com/llvm/llvm-project/pull/121439
More information about the llvm-commits
mailing list