+ generate funcdef for external procs, that don't have an import dll

This commit is contained in:
Nikolay Nikolov 2021-09-26 20:37:34 +03:00
parent 2102fbdc97
commit db843287a2

View File

@ -75,8 +75,11 @@ implementation
if assigned(def) and (def.typ=procdef) then
begin
proc := tprocdef(def);
if (po_external in proc.procoptions) and (po_has_importdll in proc.procoptions) then
WriteImportDll(list,proc);
if po_external in proc.procoptions then
if po_has_importdll in proc.procoptions then
WriteImportDll(list,proc)
else
thlcgwasm(hlcg).g_procdef(list,proc);
end;
end;
cur_unit:=tused_unit(usedunits.First);