소스 검색

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

Nikolay Nikolov 3 년 전
부모
커밋
ec9c81e77e
1개의 변경된 파일1개의 추가작업 그리고 1개의 파일을 삭제
  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:='';
     SplitBinCmd(Info.DllCmd[1],binstr,cmdstr);
-    Replace(cmdstr,'$EXE',maybequoted(current_module.exefilename));
+    Replace(cmdstr,'$EXE',maybequoted(current_module.sharedlibfilename));
 
     tmp := TCmdStrListItem(ObjectFiles.First);
     while Assigned(tmp) do begin