소스 검색

* generate debuginfo for WebAssembly threadvars like for normal vars, when
WebAssembly threads are turned off

Nikolay Nikolov 1 년 전
부모
커밋
97e5936f78
1개의 변경된 파일3개의 추가작업 그리고 1개의 파일을 삭제
  1. 3 1
      compiler/dbgdwarf.pas

+ 3 - 1
compiler/dbgdwarf.pas

@@ -2360,7 +2360,9 @@ implementation
               case sym.typ of
                 staticvarsym:
                   begin
-                    if vo_is_thread_var in sym.varoptions then
+                    if (vo_is_thread_var in sym.varoptions) and
+                       (not (target_info.system in systems_wasm) or
+                            (ts_wasm_threads in current_settings.targetswitches)) then
                       begin
                         if tf_section_threadvars in target_info.flags then
                           begin