소스 검색

* do not use a wildcard while deleting smartlinked objects after linking stage in a script, conflicts with script filename quoting on Unix at least

git-svn-id: trunk@37918 -
Károly Balogh 7 년 전
부모
커밋
7e630686e0
1개의 변경된 파일2개의 추가작업 그리고 1개의 파일을 삭제
  1. 2 1
      compiler/link.pas

+ 2 - 1
compiler/link.pas

@@ -891,7 +891,8 @@ Implementation
           end
           end
          else
          else
           begin
           begin
-            AsmRes.AddDeleteCommand(FixFileName(smartpath+current_module.asmprefix^+'*'+target_info.objext));
+            while not SmartLinkOFiles.Empty do
+              AsmRes.AddDeleteCommand(SmartLinkOFiles.GetFirst);
             if scripted_ar then
             if scripted_ar then
               AsmRes.AddDeleteCommand(scriptfile);
               AsmRes.AddDeleteCommand(scriptfile);
             AsmRes.AddDeleteDirCommand(smartpath);
             AsmRes.AddDeleteDirCommand(smartpath);