We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 4cacdbc commit d921b0aCopy full SHA for d921b0a
src/codegen.cpp
@@ -496,7 +496,7 @@ struct JuliaVariable {
496
auto var = new GlobalVariable(*m, _type(T_size),
497
isconst, GlobalVariable::ExternalLinkage,
498
NULL, name);
499
- if (Triple(m->getTargetTriple()).getObjectFormat() == Triple::COFF)
+ if (Triple(m->getTargetTriple()).isOSBinFormatCOFF())
500
var->setDLLStorageClass(GlobalValue::DLLStorageClassTypes::DLLImportStorageClass); // This is necessary to avoid auto import issues
501
return var;
502
}
0 commit comments