mirror of
https://gitlab.com/freepascal.org/lazarus/lazarus.git
synced 2025-04-07 14:38:01 +02:00
LazBuild: Fix AV, remove EnvironmentGuiOpts dependency from compiler.pp. Issue #40318.
This commit is contained in:
parent
08283ae760
commit
80a2091176
@ -325,7 +325,6 @@ type
|
||||
private
|
||||
FHideHintsSenderNotUsed: boolean;
|
||||
FHideHintsUnitNotUsedInMainSource: boolean;
|
||||
FShowLinesCompiled: boolean;
|
||||
FUseTranslationUrgency: boolean;
|
||||
protected
|
||||
FFilesToIgnoreUnitNotUsed: TStrings;
|
||||
@ -339,8 +338,6 @@ type
|
||||
class function GetFPCMsgValues(Msg: TMessageLine; out Value1, Value2: string): boolean; virtual; abstract;
|
||||
property FilesToIgnoreUnitNotUsed: TStrings read FFilesToIgnoreUnitNotUsed
|
||||
write FFilesToIgnoreUnitNotUsed;
|
||||
property ShowLinesCompiled: boolean read FShowLinesCompiled
|
||||
write FShowLinesCompiled default false;
|
||||
property HideHintsSenderNotUsed: boolean read FHideHintsSenderNotUsed
|
||||
write FHideHintsSenderNotUsed default true;
|
||||
property HideHintsUnitNotUsedInMainSource: boolean
|
||||
|
@ -50,7 +50,7 @@ uses
|
||||
// IdeIntf
|
||||
IDEMsgIntf, LazIDEIntf,
|
||||
// IDE
|
||||
IDECmdLine, LazarusIDEStrConsts, CompilerOptions, Project, EnvGuiOptions;
|
||||
IDECmdLine, LazarusIDEStrConsts, CompilerOptions, Project;
|
||||
|
||||
type
|
||||
TOnCmdLineCreate = procedure(var CmdLine: string; var Abort:boolean) of object;
|
||||
@ -348,7 +348,6 @@ begin
|
||||
if CompilerKind=pcPas2js then
|
||||
SubTool:=SubToolPas2js;
|
||||
FPCParser:=TFPCParser(Tool.AddParsers(SubTool));
|
||||
FPCParser.ShowLinesCompiled:=EnvironmentGuiOpts.MsgViewShowFPCMsgLinesCompiled;
|
||||
FPCParser.HideHintsSenderNotUsed:=not AProject.CompilerOptions.ShowHintsForSenderNotUsed;
|
||||
FPCParser.HideHintsUnitNotUsedInMainSource:=not AProject.CompilerOptions.ShowHintsForUnusedUnitsInMainSrc;
|
||||
if (not AProject.CompilerOptions.ShowHintsForUnusedUnitsInMainSrc)
|
||||
|
@ -47,7 +47,7 @@ uses
|
||||
// IdeConfig
|
||||
EnvironmentOpts, LazConf,
|
||||
// IDE
|
||||
IDECmdLine, LazarusIDEStrConsts, TransferMacros, etMakeMsgParser;
|
||||
IDECmdLine, LazarusIDEStrConsts, TransferMacros, etMakeMsgParser, EnvGuiOptions;
|
||||
|
||||
const
|
||||
FPCMsgIDCompiling = 3104;
|
||||
@ -1441,7 +1441,7 @@ begin
|
||||
Result:=true;
|
||||
MsgLine:=CreateMsgLine;
|
||||
MsgLine.SubTool:=DefaultSubTool;
|
||||
if ShowLinesCompiled then
|
||||
if EnvironmentGuiOpts.MsgViewShowFPCMsgLinesCompiled then
|
||||
MsgLine.Urgency:=mluImportant
|
||||
else
|
||||
MsgLine.Urgency:=mluVerbose;
|
||||
@ -2744,7 +2744,8 @@ begin
|
||||
FPCMsgIDThereWereErrorsCompiling: // There were $1 errors compiling module, stopping
|
||||
MsgUrgency:=mluVerbose;
|
||||
FPCMsgIDLinesCompiled: // n lines compiled, m sec
|
||||
if ShowLinesCompiled then MsgUrgency:=mluImportant;
|
||||
if EnvironmentGuiOpts.MsgViewShowFPCMsgLinesCompiled then
|
||||
MsgUrgency:=mluImportant;
|
||||
end;
|
||||
MsgLine:=CreateMsgLine;
|
||||
MsgLine.SubTool:=DefaultSubTool;
|
||||
|
Loading…
Reference in New Issue
Block a user