From ebc6cb6e35e69d738ed0ff017dcda01a62b89a65 Mon Sep 17 00:00:00 2001 From: n7800 <14154601-n7800@users.noreply.gitlab.com> Date: Thu, 13 Mar 2025 02:45:11 +0500 Subject: [PATCH] IDE: Take into account the parameter --skip-checks when displaying errors --- ide/buildmanager.pas | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/ide/buildmanager.pas b/ide/buildmanager.pas index d2a443fb7e..5adaa4ddf0 100644 --- a/ide/buildmanager.pas +++ b/ide/buildmanager.pas @@ -55,7 +55,7 @@ uses // IdeConfig LazConf, EnvironmentOpts, ModeMatrixOpts, TransferMacros, IdeConfStrConsts, IDEProcs, etMakeMsgParser, etFPCMsgFilePool, ParsedCompilerOpts, CompilerOptions, - EditDefineTree, + EditDefineTree, IDECmdLine, // IdePackager IdePackagerStrConsts, // IDE @@ -1138,7 +1138,7 @@ begin debugln('Warning: (lazarus) [TBuildManager.RescanCompilerDefines]: invalid compiler:'); debugln(Msg); - if not Quiet then begin + if not Quiet and not GetSkipCheck(skcFpcSrc) then begin IDEMessageDialog(lisCCOErrorCaption, Format( lisThereIsNoFreePascalCompilerEGFpcOrPpcCpuConfigured, [ExeExt, LineEnding, Msg]), mtError, [mbOk]); @@ -1267,7 +1267,7 @@ begin FPCSrcScans.Scan(AsyncScanFPCSrcDir); end; - if not Quiet then begin + if not Quiet and not GetSkipCheck(skcFpcExe) then begin // check for common installation mistakes if not PPUFilesAndCompilerMatch then exit; if (UnitSetCache.GetCompilerKind=pcFPC) then begin