IDE: Better searching of FPC source directory - check fpcsrc dir (relative to FPCDIR environment variable)

git-svn-id: trunk@56532 -
This commit is contained in:
hnb 2017-11-29 10:30:14 +00:00
parent 7f35c413b9
commit 7faf1426f1

View File

@ -738,6 +738,10 @@ begin
AFileName := GetEnvironmentVariableUTF8('FPCDIR');
if Check(AFilename,Result) then exit;
// check relative to FPCDIR
if AFileName <> '' then
if Check(AFilename + '/../fpcsrc', Result) then exit;
// check history
Dirs:=EnvironmentOptions.FPCSourceDirHistory;
if Dirs<>nil then