1
0
Fork 0
mirror of https://github.com/beefytech/Beef.git synced 2025-06-08 19:48:20 +02:00

Fixed linker error where startup object is a static block

This commit is contained in:
Brian Fiete 2022-03-18 18:22:10 -07:00
parent 676e7988fb
commit df02aa3b6a

View file

@ -7134,7 +7134,7 @@ bool BfCompiler::DoCompile(const StringImpl& outputDirectory)
}
String entryClassName = project->mStartupObject;
typeDef = mSystem->FindTypeDef(entryClassName, 0, project);
typeDef = mSystem->FindTypeDef(entryClassName, 0, project, {}, NULL, BfFindTypeDefFlag_AllowGlobal);
if (typeDef != NULL)
{
auto startupType = mContext->mScratchModule->ResolveTypeDef(typeDef);