diff --git a/compiler/aggas.pas b/compiler/aggas.pas index 57c2f341b9..8e9bbdd865 100644 --- a/compiler/aggas.pas +++ b/compiler/aggas.pas @@ -566,6 +566,7 @@ implementation writer.AsmWrite('.csect '); end; system_wasm32_wasip1, + system_wasm32_wasip1threads, system_wasm32_embedded: begin writer.AsmWrite('.section '); diff --git a/compiler/ogwasm.pas b/compiler/ogwasm.pas index c5f231f9b0..fd2c80d4df 100644 --- a/compiler/ogwasm.pas +++ b/compiler/ogwasm.pas @@ -6497,7 +6497,7 @@ implementation idtxt : 'WASM'; asmbin : ''; asmcmd : ''; - supported_targets : [system_wasm32_embedded,system_wasm32_wasip1]; + supported_targets : [system_wasm32_embedded,system_wasm32_wasip1,system_wasm32_wasip1threads]; flags : [af_outputbinary,af_smartlink_sections]; labelprefix : '..@'; labelmaxlen : -1; diff --git a/compiler/parser.pas b/compiler/parser.pas index 9c1386f847..8083e6b54f 100644 --- a/compiler/parser.pas +++ b/compiler/parser.pas @@ -199,7 +199,8 @@ implementation if heapsize=0 then heapsize:=65536; end; - system_wasm32_wasip1: + system_wasm32_wasip1, + system_wasm32_wasip1threads: begin if ts_wasm_threads in init_settings.targetswitches then maxheapsize:=256*1024*1024 diff --git a/compiler/wasm32/agbinaryen.pas b/compiler/wasm32/agbinaryen.pas index fdbc03e892..c4a799494b 100644 --- a/compiler/wasm32/agbinaryen.pas +++ b/compiler/wasm32/agbinaryen.pas @@ -590,7 +590,7 @@ implementation idtxt : 'BINARYEN'; asmbin : 'wasm-as'; asmcmd : '$ASM $EXTRAOPT'; - supported_targets : [system_wasm32_embedded,system_wasm32_wasip1]; + supported_targets : [system_wasm32_embedded,system_wasm32_wasip1,system_wasm32_wasip1threads]; flags : []; labelprefix : 'L'; labelmaxlen : -1; diff --git a/compiler/wasm32/agllvmmc.pas b/compiler/wasm32/agllvmmc.pas index a01e909858..9226afa5d7 100644 --- a/compiler/wasm32/agllvmmc.pas +++ b/compiler/wasm32/agllvmmc.pas @@ -438,7 +438,7 @@ implementation idtxt : 'LLVM-MC-10'; asmbin : 'llvm-mc-10'; asmcmd : '--assemble --arch=wasm32 -mattr=+sign-ext,+exception-handling,+bulk-memory,+atomics --filetype=obj -o $OBJ $EXTRAOPT $ASM'; - supported_targets : [system_wasm32_embedded,system_wasm32_wasip1]; + supported_targets : [system_wasm32_embedded,system_wasm32_wasip1,system_wasm32_wasip1threads]; flags : [af_smartlink_sections]; labelprefix : '.L'; labelmaxlen : -1; @@ -451,7 +451,7 @@ implementation idtxt : 'LLVM-MC-11'; asmbin : 'llvm-mc-11'; asmcmd : '--assemble --arch=wasm32 -mattr=+sign-ext,+exception-handling,+bulk-memory,+atomics,+reference-types --filetype=obj -o $OBJ $EXTRAOPT $ASM'; - supported_targets : [system_wasm32_embedded,system_wasm32_wasip1]; + supported_targets : [system_wasm32_embedded,system_wasm32_wasip1,system_wasm32_wasip1threads]; flags : [af_smartlink_sections]; labelprefix : '.L'; labelmaxlen : -1; @@ -464,7 +464,7 @@ implementation idtxt : 'LLVM-MC-12'; asmbin : 'llvm-mc-12'; asmcmd : '--assemble --arch=wasm32 -mattr=+sign-ext,+exception-handling,+bulk-memory,+atomics,+reference-types --filetype=obj -o $OBJ $EXTRAOPT $ASM'; - supported_targets : [system_wasm32_embedded,system_wasm32_wasip1]; + supported_targets : [system_wasm32_embedded,system_wasm32_wasip1,system_wasm32_wasip1threads]; flags : [af_smartlink_sections]; labelprefix : '.L'; labelmaxlen : -1; @@ -489,7 +489,7 @@ implementation idtxt : 'LLVM-MC-13'; asmbin : 'llvm-mc-13'; asmcmd : '--assemble --arch=wasm32 -mattr=+sign-ext,+exception-handling,+bulk-memory,+atomics,+reference-types --filetype=obj --no-type-check -o $OBJ $EXTRAOPT $ASM'; - supported_targets : [system_wasm32_embedded,system_wasm32_wasip1]; + supported_targets : [system_wasm32_embedded,system_wasm32_wasip1,system_wasm32_wasip1threads]; flags : [af_smartlink_sections]; labelprefix : '.L'; labelmaxlen : -1; @@ -506,7 +506,7 @@ implementation idtxt : 'LLVM-MC-14'; asmbin : 'llvm-mc-14'; asmcmd : '--assemble --arch=wasm32 -mattr=+sign-ext,+exception-handling,+bulk-memory,+atomics,+reference-types --filetype=obj --no-type-check -o $OBJ $EXTRAOPT $ASM'; - supported_targets : [system_wasm32_embedded,system_wasm32_wasip1]; + supported_targets : [system_wasm32_embedded,system_wasm32_wasip1,system_wasm32_wasip1threads]; flags : [af_smartlink_sections]; labelprefix : '.L'; labelmaxlen : -1; @@ -525,7 +525,7 @@ implementation idtxt : 'LLVM-MC-15'; asmbin : 'llvm-mc-15'; asmcmd : '--assemble --arch=wasm32 -mattr=+sign-ext,+exception-handling,+bulk-memory,+atomics,+reference-types --filetype=obj --no-type-check -o $OBJ $EXTRAOPT $ASM'; - supported_targets : [system_wasm32_embedded,system_wasm32_wasip1]; + supported_targets : [system_wasm32_embedded,system_wasm32_wasip1,system_wasm32_wasip1threads]; flags : [af_smartlink_sections]; labelprefix : '.L'; labelmaxlen : -1; @@ -541,7 +541,7 @@ implementation idtxt : 'LLVM-MC-16'; asmbin : 'llvm-mc-16'; asmcmd : '--assemble --arch=wasm32 -mattr=+sign-ext,+exception-handling,+bulk-memory,+atomics,+reference-types --filetype=obj --no-type-check -o $OBJ $EXTRAOPT $ASM'; - supported_targets : [system_wasm32_embedded,system_wasm32_wasip1]; + supported_targets : [system_wasm32_embedded,system_wasm32_wasip1,system_wasm32_wasip1threads]; flags : [af_smartlink_sections]; labelprefix : '.L'; labelmaxlen : -1; @@ -561,7 +561,7 @@ implementation idtxt : 'LLVM-MC-17'; asmbin : 'llvm-mc-17'; asmcmd : '--assemble --arch=wasm32 -mattr=+sign-ext,+exception-handling,+bulk-memory,+atomics,+reference-types --filetype=obj --no-type-check -o $OBJ $EXTRAOPT $ASM'; - supported_targets : [system_wasm32_embedded,system_wasm32_wasip1]; + supported_targets : [system_wasm32_embedded,system_wasm32_wasip1,system_wasm32_wasip1threads]; flags : [af_smartlink_sections]; labelprefix : '.L'; labelmaxlen : -1; @@ -577,7 +577,7 @@ implementation idtxt : 'LLVM-MC'; asmbin : 'llvm-mc'; asmcmd : '--assemble --arch=wasm32 -mattr=+sign-ext,+exception-handling,+bulk-memory,+atomics,+reference-types --filetype=obj --no-type-check -o $OBJ $EXTRAOPT $ASM'; - supported_targets : [system_wasm32_embedded,system_wasm32_wasip1]; + supported_targets : [system_wasm32_embedded,system_wasm32_wasip1,system_wasm32_wasip1threads]; flags : [af_smartlink_sections]; labelprefix : '.L'; labelmaxlen : -1; diff --git a/compiler/wasm32/agwasa.pas b/compiler/wasm32/agwasa.pas index 0a165cb975..212209c736 100644 --- a/compiler/wasm32/agwasa.pas +++ b/compiler/wasm32/agwasa.pas @@ -1094,7 +1094,7 @@ implementation idtxt : 'WASA'; asmbin : 'wasa'; asmcmd : '-r --no-canonicalize-leb128s -o $OBJ $EXTRAOPT $ASM'; - supported_targets : [system_wasm32_embedded,system_wasm32_wasip1]; + supported_targets : [system_wasm32_embedded,system_wasm32_wasip1,system_wasm32_wasip1threads]; flags : []; labelprefix : 'L'; labelmaxlen : -1;