* 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,8 +5174,11 @@ implementation
WriteNameMap(FDataNameMap,FWasmNameSubsections[wnstDataNames]);
WriteNameSubsection(wnstDataNames);
WriteNameMap(FTagNameMap,FWasmNameSubsections[wnstTagNames]);
WriteNameSubsection(wnstTagNames);
if Length(FTagNameMap)>0 then
begin
WriteNameMap(FTagNameMap,FWasmNameSubsections[wnstTagNames]);
WriteNameSubsection(wnstTagNames);
end;
end;
var