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:
parent
676e7988fb
commit
df02aa3b6a
1 changed files with 1 additions and 1 deletions
|
@ -7134,7 +7134,7 @@ bool BfCompiler::DoCompile(const StringImpl& outputDirectory)
|
||||||
}
|
}
|
||||||
|
|
||||||
String entryClassName = project->mStartupObject;
|
String entryClassName = project->mStartupObject;
|
||||||
typeDef = mSystem->FindTypeDef(entryClassName, 0, project);
|
typeDef = mSystem->FindTypeDef(entryClassName, 0, project, {}, NULL, BfFindTypeDefFlag_AllowGlobal);
|
||||||
if (typeDef != NULL)
|
if (typeDef != NULL)
|
||||||
{
|
{
|
||||||
auto startupType = mContext->mScratchModule->ResolveTypeDef(typeDef);
|
auto startupType = mContext->mScratchModule->ResolveTypeDef(typeDef);
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue