ide: expand fppkg fpc path

This commit is contained in:
mattias 2023-07-26 10:21:43 +01:00
parent 1831cd1ad6
commit f01f0ab38e

View File

@ -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;