mirror of
https://gitlab.com/freepascal.org/fpc/source.git
synced 2025-09-01 13:50:29 +02:00
Avoid repeated warnings about libgcc directory
This commit is contained in:
parent
a9db41f1e5
commit
ca186440eb
@ -1239,6 +1239,7 @@ Type
|
||||
FOnFinishCopy: TNotifyEvent;
|
||||
|
||||
FCachedlibcPath: string;
|
||||
GCCLibWarningIssued : boolean;
|
||||
{$ifndef NO_THREADING}
|
||||
FGeneralCriticalSection: TRTLCriticalSection;
|
||||
{$endif NO_THREADING}
|
||||
@ -7237,7 +7238,11 @@ begin
|
||||
begin
|
||||
s:=GetDefaultLibGCCDir(Defaults.CPU, Defaults.OS,ErrS);
|
||||
if s='' then
|
||||
Log(vlWarning, SWarngcclibpath +' '+ErrS)
|
||||
begin
|
||||
if (ErrS<>'') and not (GCCLibWarningIssued) then
|
||||
Log(vlWarning, SWarngcclibpath +' '+ErrS);
|
||||
GCCLibWarningIssued:=True;
|
||||
end
|
||||
else
|
||||
begin
|
||||
{$ifndef NO_THREADING}
|
||||
|
Loading…
Reference in New Issue
Block a user