소스 검색

+ also create the FPC_EXCEPTION_TAG_SYM for exnref exceptions (the exception tag is the same, like in the legacy exceptions proposal)

Nikolay Nikolov 1 일 전
부모
커밋
43e88d2841
1개의 변경된 파일1개의 추가작업 그리고 1개의 파일을 삭제
  1. 1 1
      compiler/wasm32/nwasmutil.pas

+ 1 - 1
compiler/wasm32/nwasmutil.pas

@@ -152,7 +152,7 @@ implementation
           list.Concat(tai_globaltype.create(TLS_BASE_SYM,wbt_i32,false));
         end;
 
-      if ts_wasm_native_legacy_exceptions in current_settings.targetswitches then
+      if [ts_wasm_native_legacy_exceptions,ts_wasm_native_exnref_exceptions]*current_settings.targetswitches<>[] then
         begin
           list.Concat(tai_tagtype.create(FPC_EXCEPTION_TAG_SYM, []));
           list.Concat(tai_symbol.Create_Weak(current_asmdata.WeakRefAsmSymbol(FPC_EXCEPTION_TAG_SYM,AT_WASM_EXCEPTION_TAG),0));