浏览代码

+ enable WebAssembly threads with the internal linker (which still doesn't work
with threads) if FPC is compiled with the FPC_WASM_THREADS_INTERNAL_LINKER
define

Nikolay Nikolov 11 月之前
父节点
当前提交
34025aecac
共有 1 个文件被更改,包括 2 次插入0 次删除
  1. 2 0
      compiler/options.pas

+ 2 - 0
compiler/options.pas

@@ -2246,12 +2246,14 @@ begin
       StopOptions(1);
       StopOptions(1);
     end;
     end;
 
 
+{$ifndef FPC_WASM_THREADS_INTERNAL_LINKER}
   if (ts_wasm_threads in init_settings.targetswitches) and
   if (ts_wasm_threads in init_settings.targetswitches) and
      not (cs_link_extern in init_settings.globalswitches) then
      not (cs_link_extern in init_settings.globalswitches) then
     begin
     begin
       Message(option_wasm_threads_require_external_linker);
       Message(option_wasm_threads_require_external_linker);
       include(init_settings.globalswitches,cs_link_extern);
       include(init_settings.globalswitches,cs_link_extern);
     end;
     end;
+{$endif FPC_WASM_THREADS_INTERNAL_LINKER}
 {$endif}
 {$endif}
 
 
 {$ifdef i8086}
 {$ifdef i8086}