mirror of
https://gitlab.com/freepascal.org/lazarus/lazarus.git
synced 2025-04-23 01:39:31 +02:00
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:
parent
7f35c413b9
commit
7faf1426f1
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user