Parcourir la source

* implementation of TInternalLinkerWasi.DefaultLinkScript. Create a script that reads all the object files.

Nikolay Nikolov il y a 2 ans
Parent
commit
34445a912a
1 fichiers modifiés avec 8 ajouts et 1 suppressions
  1. 8 1
      compiler/systems/t_wasi.pas

+ 8 - 1
compiler/systems/t_wasi.pas

@@ -289,8 +289,15 @@ end;
 { TInternalLinkerWasi }
 
 procedure TInternalLinkerWasi.DefaultLinkScript;
+var
+  s: TCmdStr;
 begin
-  {TODO}
+  while not ObjectFiles.Empty do
+  begin
+    s:=ObjectFiles.GetFirst;
+    if s<>'' then
+      LinkScript.Concat('READOBJECT ' + maybequoted(s));
+  end;
 end;
 
 function TInternalLinkerWasi.GetCodeSize(aExeOutput: TExeOutput): QWord;