fix macOS build

This commit is contained in:
Uladzimir Karpenka
2026-05-28 15:59:49 +03:00
parent 4f281ce400
commit 4f127a30ad
8 changed files with 51 additions and 17 deletions
+3 -2
View File
@@ -990,12 +990,13 @@ begin
FLastError := '';
if FInitialized then Exit;
if not Assigned(@OpenChannel) then
if not Assigned(@OpenChannel) or not Assigned(@XCreateAnalyzer) or
not Assigned(@SetAnalyzer) then
begin
FInitialized := False;
DllPath := IncludeTrailingPathDelimiter(ExtractFilePath(ParamStr(0))) + WDSP_LIB;
if FileExists(DllPath) then
FLastError := Format('Symbols from %s are not resolved. Check architecture (x64/x86) and dependencies.', [DllPath])
FLastError := Format('Symbols from %s are not resolved. Check architecture and library version (need WDSP with analyzer API).', [DllPath])
else
FLastError := Format('WDSP library not found: %s', [DllPath]);
Exit;