Skip to content

Commit d921b0a

Browse files
committed
Change check to be correct for the JIT as well
1 parent 4cacdbc commit d921b0a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/codegen.cpp

Lines changed: 1 addition & 1 deletion
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()).getObjectFormat() == Triple::COFF)
499+
if (Triple(m->getTargetTriple()).isOSBinFormatCOFF())
500500
var->setDLLStorageClass(GlobalValue::DLLStorageClassTypes::DLLImportStorageClass); // This is necessary to avoid auto import issues
501501
return var;
502502
}

0 commit comments

Comments
 (0)