1
0
Fork 0
mirror of https://github.com/beefytech/Beef.git synced 2025-06-08 11:38:21 +02:00

Fixed DllMain

This commit is contained in:
Brian Fiete 2021-06-28 13:03:07 -07:00
parent 7c6c2f20e6
commit 463ef98789

View file

@ -1674,7 +1674,7 @@ void BfCompiler::CreateVData(BfVDataModule* bfModule)
bool mainHasArgs = (targetType != BfTargetType_BeefLib_DynamicLib) && (targetType != BfTargetType_BeefLib_StaticLib) &&
(mOptions.mPlatformType != BfPlatformType_Wasm);
bool mainHasRet = (targetType != BfTargetType_BeefLib_DynamicLib) && (targetType != BfTargetType_BeefLib_StaticLib);
bool mainHasRet = ((targetType != BfTargetType_BeefLib_DynamicLib) && (targetType != BfTargetType_BeefLib_StaticLib)) || (isDllMain);
// Generate "main"
if (!IsHotCompile())