Skip to content

Commit a81055d

Browse files
committed
Try changing the check again
1 parent d921b0a commit a81055d

File tree

1 file changed

+1
-5
lines changed

1 file changed

+1
-5
lines changed

src/codegen.cpp

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -496,7 +496,7 @@ struct JuliaVariable {
496496
auto var = new GlobalVariable(*m, _type(T_size),
497497
isconst, GlobalVariable::ExternalLinkage,
498498
NULL, name);
499-
if (Triple(m->getTargetTriple()).isOSBinFormatCOFF())
499+
if (Triple(m->getTargetTriple()).isOSWindows())
500500
var->setDLLStorageClass(GlobalValue::DLLStorageClassTypes::DLLImportStorageClass); // This is necessary to avoid auto import issues
501501
return var;
502502
}
@@ -1789,10 +1789,6 @@ static inline GlobalVariable *prepare_global_in(Module *M, GlobalVariable *G)
17891789
G->isConstant(), GlobalVariable::ExternalLinkage,
17901790
nullptr, G->getName(), nullptr, G->getThreadLocalMode());
17911791
proto->copyAttributesFrom(G);
1792-
// DLLImport only needs to be set for the shadow module
1793-
// it just gets annoying in the JIT
1794-
if (Triple(M->getTargetTriple()).getObjectFormat() != Triple::COFF)
1795-
proto->setDLLStorageClass(GlobalValue::DefaultStorageClass);
17961792
return proto;
17971793
}
17981794
return cast<GlobalVariable>(local);

0 commit comments

Comments
 (0)