+ declare __FPC_exception as a label, otherwise wasm-ld crashes

This commit is contained in:
Nikolay Nikolov 2021-09-18 01:46:45 +03:00
parent 8ad5362b17
commit ac2f299d04

View File

@ -157,7 +157,10 @@ implementation
{ print all global procedures/functions }
WriteImports;
if ts_wasm_native_exceptions in current_settings.targetswitches then
writer.AsmWriteLn(#9'.tagtype'#9'__FPC_exception');
begin
writer.AsmWriteLn(#9'.tagtype'#9'__FPC_exception');
writer.AsmWriteLn('__FPC_exception:');
end;
inherited;
end;