mirror of
https://gitlab.com/freepascal.org/lazarus/lazarus.git
synced 2025-12-09 21:27:42 +01:00
codetools: fixed crash, if fpc returns no search paths
git-svn-id: trunk@26847 -
This commit is contained in:
parent
72d00b6953
commit
5a1cba9ff7
@ -7580,8 +7580,9 @@ begin
|
||||
// run fpc and parse output
|
||||
RunFPCVerbose(Compiler,TestFilename,CfgFiles,RealCompiler,UnitPaths,
|
||||
Defines,Undefines,ExtraOptions);
|
||||
for i:=0 to UnitPaths.Count-1 do
|
||||
UnitPaths[i]:=ChompPathDelim(TrimFilename(UnitPaths[i]));
|
||||
if UnitPaths<>nil then
|
||||
for i:=0 to UnitPaths.Count-1 do
|
||||
UnitPaths[i]:=ChompPathDelim(TrimFilename(UnitPaths[i]));
|
||||
// store the real compiler file and date
|
||||
if (RealCompiler<>'') and FileExistsCached(RealCompiler) then
|
||||
RealCompilerDate:=FileAgeCached(RealCompiler);
|
||||
|
||||
Loading…
Reference in New Issue
Block a user