mirror of
https://gitlab.com/freepascal.org/lazarus/lazarus.git
synced 2025-04-07 08:58:23 +02:00
ide: expand fppkg fpc path
This commit is contained in:
parent
1831cd1ad6
commit
f01f0ab38e
@ -56,6 +56,7 @@ var
|
||||
procedure TFppkgHelper.InitializeFppkg;
|
||||
var
|
||||
FPpkg: TpkgFPpkg;
|
||||
aFilename: String;
|
||||
begin
|
||||
FPpkg := TpkgFPpkg.Create(nil);
|
||||
try
|
||||
@ -66,6 +67,11 @@ begin
|
||||
FPpkg.InitializeGlobalOptions(FOverrideConfigurationFilename);
|
||||
FPpkg.InitializeCompilerOptions;
|
||||
|
||||
aFilename:=ExpandFileName(FPpkg.CompilerOptions.Compiler);
|
||||
if not FileExistsCached(aFilename) then
|
||||
exit; // no fppkg -> silently ignore here
|
||||
FPpkg.CompilerOptions.Compiler:=aFilename;
|
||||
|
||||
FPpkg.CompilerOptions.CheckCompilerValues;
|
||||
FPpkg.FpmakeCompilerOptions.CheckCompilerValues;
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user