1
0
Fork 0
mirror of https://github.com/beefytech/Beef.git synced 2025-06-10 12:32:20 +02:00

Long size fix

This commit is contained in:
Brian Fiete 2021-12-03 05:58:34 -08:00
parent 61222f8525
commit ab1146d72a

View file

@ -9361,10 +9361,9 @@ BF_EXPORT void BF_CALLTYPE BfCompiler_SetOptions(BfCompiler* bfCompiler, BfProje
options->mCLongSize = 4; options->mCLongSize = 4;
if ((options->mMachineType == BfMachineType_AArch64) || (options->mMachineType == BfMachineType_x64)) if ((options->mMachineType == BfMachineType_AArch64) || (options->mMachineType == BfMachineType_x64))
{ {
if ((options->mPlatformType == BfPlatformType_macOS) || (options->mPlatformType == BfPlatformType_iOS) || if (options->mPlatformType != BfPlatformType_Windows)
(options->mPlatformType == BfPlatformType_Linux) || (options->mPlatformType == BfPlatformType_Android))
options->mCLongSize = 8; options->mCLongSize = 8;
} }
bfCompiler->mCodeGen.SetMaxThreads(maxWorkerThreads); bfCompiler->mCodeGen.SetMaxThreads(maxWorkerThreads);