mirror of
https://gitlab.com/freepascal.org/fpc/source.git
synced 2025-12-16 01:30:33 +01:00
* WebAssembly threads: don't do anything in TWasmExeOutput.SetThreadVarGlobalsInitValues
and TWasmExeOutput.GenerateCode_InitTls if threads are disabled
This commit is contained in:
parent
334ef633a8
commit
0d5dd4196f
@ -5434,6 +5434,8 @@ implementation
|
||||
objsec: TWasmObjSection;
|
||||
objsym: TWasmObjSymbol;
|
||||
begin
|
||||
if not (ts_wasm_threads in current_settings.targetswitches) then
|
||||
exit;
|
||||
exesec:=FindExeSection('.wasm_globals');
|
||||
if not assigned(exesec) then
|
||||
internalerror(2024010112);
|
||||
@ -5449,6 +5451,8 @@ implementation
|
||||
var
|
||||
a: Byte=0;
|
||||
begin
|
||||
if not (ts_wasm_threads in current_settings.targetswitches) then
|
||||
exit;
|
||||
FInitTlsFunctionSym.objsection.SecOptions:=FInitTlsFunctionSym.objsection.SecOptions+[oso_Data];
|
||||
FInitTlsFunctionSym.objsection.write(a,1);
|
||||
end;
|
||||
|
||||
Loading…
Reference in New Issue
Block a user