From 598765d43778a4a4a9cc5eecefbe485893ec1122 Mon Sep 17 00:00:00 2001 From: Brian Fiete Date: Tue, 24 Mar 2020 07:21:20 -0700 Subject: [PATCH] Fixed LTO error in ResolveOnly --- IDE/src/IDEApp.bf | 11 ++++++++--- 1 file changed, 8 insertions(+), 3 deletions(-) diff --git a/IDE/src/IDEApp.bf b/IDE/src/IDEApp.bf index fa1214be..f405309b 100644 --- a/IDE/src/IDEApp.bf +++ b/IDE/src/IDEApp.bf @@ -8099,9 +8099,14 @@ namespace IDE optimizationLevel = .O0; } - var ltoType = workspaceOptions.mLTOType; - if (options.mBeefOptions.mLTOType != null) - ltoType = options.mBeefOptions.mLTOType.Value; + BuildOptions.LTOType ltoType = .None; + + if (!bfCompiler.mIsResolveOnly) + { + ltoType = workspaceOptions.mLTOType; + if (options.mBeefOptions.mLTOType != null) + ltoType = options.mBeefOptions.mLTOType.Value; + } var targetType = project.mGeneralOptions.mTargetType;