浏览代码

* fixed building of smart linked units

git-svn-id: trunk@5227 -
florian 19 年之前
父节点
当前提交
959a1379cf
共有 2 个文件被更改,包括 2 次插入2 次删除
  1. 1 1
      compiler/assemble.pas
  2. 1 1
      compiler/link.pas

+ 1 - 1
compiler/assemble.pas

@@ -253,7 +253,7 @@ Implementation
         inherited Create(smart);
         if SmartAsm then
          begin
-           path:=FixPath(path+ChangeFileExt(AsmFileName,target_info.smartext),false);
+           path:=FixPath(ChangeFileExt(AsmFileName,target_info.smartext),false);
            CreateSmartLinkPath(path);
          end;
         Outcnt:=0;

+ 1 - 1
compiler/link.pas

@@ -677,7 +677,7 @@ Implementation
       { remove the library, to be sure that it is rewritten }
         DeleteFile(current_module.staticlibfilename^);
       { Call AR }
-        smartpath:=current_module.outputpath^+FixPath(ChangeFileExt(current_module.asmfilename^,target_info.smartext),false);
+        smartpath:=FixPath(ChangeFileExt(current_module.asmfilename^,target_info.smartext),false);
         SplitBinCmd(target_ar.arcmd,binstr,cmdstr);
         binstr := FindUtil(utilsprefix + binstr);