* WebAssembly internal linker: only generate the tag name subsection if there

are any tags in the module
This commit is contained in:
Nikolay Nikolov 2024-09-21 09:43:18 +03:00
parent 508e0dd01c
commit 130d1e9d40

View File

@ -5174,9 +5174,12 @@ implementation
WriteNameMap(FDataNameMap,FWasmNameSubsections[wnstDataNames]);
WriteNameSubsection(wnstDataNames);
if Length(FTagNameMap)>0 then
begin
WriteNameMap(FTagNameMap,FWasmNameSubsections[wnstTagNames]);
WriteNameSubsection(wnstTagNames);
end;
end;
var
cust_sec: TWasmCustomSectionType;