Disable finalisation code fro LLVM compiler to avoid interface finalisation troubles

This commit is contained in:
Pierre Muller 2022-06-01 00:19:24 +02:00
parent a27bc236a0
commit 0e142c00cc
4 changed files with 6 additions and 0 deletions

View File

@ -787,6 +787,7 @@ implementation
(vo_is_funcret in tabstractnormalvarsym(p).varoptions)
)
) and
not (vo_is_parentfp in tabstractnormalvarsym(p).varoptions) and
not assigned(tabstractnormalvarsym(p).defaultconstsym);
end;

BIN
packages/fpmake-llvm Executable file

Binary file not shown.

BIN
packages/fpmake-reg Executable file

Binary file not shown.

View File

@ -28,6 +28,9 @@ unit fpmkunit;
Interface
{$ifdef CPULLVM}
{$define LLVM_INTERFACE_PROBLEM}
{$endif CPULLVM}
{$IFDEF MORPHOS}
{$DEFINE NO_UNIT_PROCESS}
{$DEFINE NO_THREADING}
@ -10131,12 +10134,14 @@ Initialization
GetPluginManager.RegisterPlugin(TfpmResolvePackagePathsPlugin);
Finalization
{$ifndef LLVM_INTERFACE_PROBLEM}
FreeAndNil(CustomFpMakeCommandlineValues);
FreeAndNil(CustomFpmakeCommandlineOptions);
FreeAndNil(DefInstaller);
FreeAndNil(GlobalDictionary);
FreeAndNil(Defaults);
FreeAndNil(GPluginManager);
{$endif ndef LLVM_INTERFACE_PROBLEM}
end.