Explorar el Código

* use current_module.sharedlibfilename instead of current_module.exefilename, when linking a library for the wasm32-embedded target

Nikolay Nikolov hace 3 años
padre
commit
ec9c81e77e
Se han modificado 1 ficheros con 1 adiciones y 1 borrados
  1. 1 1
      compiler/systems/t_embed.pas

+ 1 - 1
compiler/systems/t_embed.pas

@@ -2185,7 +2185,7 @@ function TLinkerEmbedded_Wasm.MakeSharedLibrary: boolean;
 
 
     SoNameStr:='';
     SoNameStr:='';
     SplitBinCmd(Info.DllCmd[1],binstr,cmdstr);
     SplitBinCmd(Info.DllCmd[1],binstr,cmdstr);
-    Replace(cmdstr,'$EXE',maybequoted(current_module.exefilename));
+    Replace(cmdstr,'$EXE',maybequoted(current_module.sharedlibfilename));
 
 
     tmp := TCmdStrListItem(ObjectFiles.First);
     tmp := TCmdStrListItem(ObjectFiles.First);
     while Assigned(tmp) do begin
     while Assigned(tmp) do begin