Browse Source

* 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 years ago
parent
commit
7e630686e0
1 changed files with 2 additions and 1 deletions
  1. 2 1
      compiler/link.pas

+ 2 - 1
compiler/link.pas

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