浏览代码

+ pass '-m wasm32' to the linker, when compiling for the wasm32-embedded target

Nikolay Nikolov 3 年之前
父节点
当前提交
078aa5d046
共有 1 个文件被更改,包括 1 次插入1 次删除
  1. 1 1
      compiler/systems/t_embed.pas

+ 1 - 1
compiler/systems/t_embed.pas

@@ -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 -z stack-size=$STACKSIZE -o $EXE';
+    Info.DllCmd[1] := 'wasm-ld -m wasm32 $SONAME $GCSECTIONS -z stack-size=$STACKSIZE -o $EXE';
     //Info.DllCmd[2] := 'wasmtool --exportrename $INPUT $EXE';
     //Info.DllCmd[2] := 'wasmtool --exportrename $INPUT $EXE';
   end;
   end;