Add -XlS option for wasm32

This commit is contained in:
Pierre Muller 2025-11-26 16:53:33 +00:00
parent c611adf3d8
commit 7c09be1b5c
3 changed files with 4 additions and 3 deletions

View File

@ -4586,7 +4586,8 @@ P*2WT_Specify MPW tool type application (Classic Mac OS)
**2Xf_Substitute pthread library name for linking (BSD)
**2Xg_Create debuginfo in a separate file and add a debuglink section to executable
**2Xi_Use internal linker
L*2XlS<x>_LLVM utilties suffix (e.g. -7 in case clang is called clang-7)
L*2XlS<x>_LLVM utilities suffix (e.g. -7 in case clang is called clang-7)
W*2XlS<x>_LLVM utilities suffix (e.g. -17 in case llvm-mc is called llvm-mc-17)
**2XLA_Define library substitutions for linking
**2XLD_Exclude default order of standard libraries
**2XLO_Define order of library linking

View File

@ -4286,7 +4286,7 @@ begin
else
include(init_settings.globalswitches,cs_link_native);
end;
{$ifdef llvm}
{$if defined(llvm) or defined(wasm32)}
'l' :
begin
if j=length(more) then

View File

@ -596,7 +596,7 @@ implementation
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,system_wasm32_wasip1threads,system_wasm32_wasip2];
flags : [af_smartlink_sections];
flags : [af_smartlink_sections, af_llvm];
labelprefix : '.L';
labelmaxlen : -1;
comment : '# ';