mirror of
https://gitlab.com/freepascal.org/lazarus/lazarus.git
synced 2025-09-03 00:00:39 +02:00
ide: expand fppkg fpc path
This commit is contained in:
parent
1831cd1ad6
commit
f01f0ab38e
@ -56,6 +56,7 @@ var
|
|||||||
procedure TFppkgHelper.InitializeFppkg;
|
procedure TFppkgHelper.InitializeFppkg;
|
||||||
var
|
var
|
||||||
FPpkg: TpkgFPpkg;
|
FPpkg: TpkgFPpkg;
|
||||||
|
aFilename: String;
|
||||||
begin
|
begin
|
||||||
FPpkg := TpkgFPpkg.Create(nil);
|
FPpkg := TpkgFPpkg.Create(nil);
|
||||||
try
|
try
|
||||||
@ -66,6 +67,11 @@ begin
|
|||||||
FPpkg.InitializeGlobalOptions(FOverrideConfigurationFilename);
|
FPpkg.InitializeGlobalOptions(FOverrideConfigurationFilename);
|
||||||
FPpkg.InitializeCompilerOptions;
|
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.CompilerOptions.CheckCompilerValues;
|
||||||
FPpkg.FpmakeCompilerOptions.CheckCompilerValues;
|
FPpkg.FpmakeCompilerOptions.CheckCompilerValues;
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user