1
0
Fork 0
mirror of https://github.com/beefytech/Beef.git synced 2025-07-04 15:26:00 +02:00

Fixed LTO error in ResolveOnly

This commit is contained in:
Brian Fiete 2020-03-24 07:21:20 -07:00
parent b8437bc67c
commit 598765d437

View file

@ -8099,9 +8099,14 @@ namespace IDE
optimizationLevel = .O0; optimizationLevel = .O0;
} }
var ltoType = workspaceOptions.mLTOType; BuildOptions.LTOType ltoType = .None;
if (options.mBeefOptions.mLTOType != null)
ltoType = options.mBeefOptions.mLTOType.Value; if (!bfCompiler.mIsResolveOnly)
{
ltoType = workspaceOptions.mLTOType;
if (options.mBeefOptions.mLTOType != null)
ltoType = options.mBeefOptions.mLTOType.Value;
}
var targetType = project.mGeneralOptions.mTargetType; var targetType = project.mGeneralOptions.mTargetType;