mirror of
https://gitlab.com/freepascal.org/fpc/source.git
synced 2025-09-23 20:09:18 +02:00
+ allow setting the stack size for the wasm32-embedded target
This commit is contained in:
parent
8aee781950
commit
1bbd16d1b7
@ -2155,7 +2155,7 @@ constructor TLinkerEmbedded_Wasm.Create;
|
|||||||
|
|
||||||
procedure TLinkerEmbedded_Wasm.SetDefaultInfo;
|
procedure TLinkerEmbedded_Wasm.SetDefaultInfo;
|
||||||
begin
|
begin
|
||||||
Info.DllCmd[1] := 'wasm-ld $SONAME $GCSECTIONS -o $EXE';
|
Info.DllCmd[1] := 'wasm-ld $SONAME $GCSECTIONS -z stack-size=$STACKSIZE -o $EXE';
|
||||||
//Info.DllCmd[2] := 'wasmtool --exportrename $INPUT $EXE';
|
//Info.DllCmd[2] := 'wasmtool --exportrename $INPUT $EXE';
|
||||||
end;
|
end;
|
||||||
|
|
||||||
@ -2205,6 +2205,7 @@ function TLinkerEmbedded_Wasm.MakeSharedLibrary: boolean;
|
|||||||
//Replace(cmdstr,'$RES',maybequoted(outputexedir+Info.ResName));
|
//Replace(cmdstr,'$RES',maybequoted(outputexedir+Info.ResName));
|
||||||
//Replace(cmdstr,'$INIT',InitStr);
|
//Replace(cmdstr,'$INIT',InitStr);
|
||||||
//Replace(cmdstr,'$FINI',FiniStr);
|
//Replace(cmdstr,'$FINI',FiniStr);
|
||||||
|
Replace(cmdstr,'$STACKSIZE',tostr(stacksize));
|
||||||
Replace(cmdstr,'$SONAME',SoNameStr);
|
Replace(cmdstr,'$SONAME',SoNameStr);
|
||||||
//Replace(cmdstr,'$MAP',mapstr);
|
//Replace(cmdstr,'$MAP',mapstr);
|
||||||
//Replace(cmdstr,'$LTO',ltostr);
|
//Replace(cmdstr,'$LTO',ltostr);
|
||||||
|
Loading…
Reference in New Issue
Block a user