mirror of
https://gitlab.com/freepascal.org/lazarus/lazarus.git
synced 2025-04-06 04:37:54 +02:00
LazBuild: Fix Access Violation when processing --add-package. Issue #40343, patch by Dean Mustakinov.
This commit is contained in:
parent
1d6009e63c
commit
b5fb939257
@ -9,6 +9,7 @@ uses
|
||||
SysUtils,
|
||||
{$IF FPC_FULLVERSION>30100}
|
||||
pkgFppkg,
|
||||
fpmkunit,
|
||||
fprepos,
|
||||
LazarusIDEStrConsts,
|
||||
{$ENDIF}
|
||||
@ -70,6 +71,9 @@ begin
|
||||
FPpkg := TpkgFPpkg.Create(nil);
|
||||
try
|
||||
try
|
||||
if not Assigned(Defaults) then
|
||||
Defaults := TBasicDefaults.Create;
|
||||
|
||||
FPpkg.InitializeGlobalOptions(FOverrideConfigurationFilename);
|
||||
FPpkg.InitializeCompilerOptions;
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user