Skip to content

Commit

Permalink
Try changing the check again
Browse files Browse the repository at this point in the history
  • Loading branch information
gbaraldi committed May 24, 2024
1 parent d921b0a commit cada51b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/codegen.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -496,7 +496,7 @@ struct JuliaVariable {
auto var = new GlobalVariable(*m, _type(T_size),
isconst, GlobalVariable::ExternalLinkage,
NULL, name);
if (Triple(m->getTargetTriple()).isOSBinFormatCOFF())
if (Triple(m->getTargetTriple()).isOSWindows())
var->setDLLStorageClass(GlobalValue::DLLStorageClassTypes::DLLImportStorageClass); // This is necessary to avoid auto import issues
return var;
}
Expand Down

0 comments on commit cada51b

Please sign in to comment.