* write resource object file to unit output directory

git-svn-id: trunk@7276 -
This commit is contained in:
Vincent Snijders 2007-05-05 19:04:43 +00:00
parent 4e375e0c38
commit e18966c372

View File

@ -89,9 +89,9 @@ begin
current_settings.globalswitches:=current_settings.globalswitches+[cs_link_nolink];
end;
srcfilepath:=ExtractFilePath(current_module.mainsource^);
resobj:=current_module.outputpath^+ChangeFileExt(ExtractFileName(fname),target_info.resobjext);
if not path_absolute(fname) then
fname:=srcfilepath+fname;
resobj:=ChangeFileExt(fname,target_info.resobjext);
s:=target_res.rescmd;
ObjUsed:=(pos('$OBJ',s)>0);
Replace(s,'$OBJ',maybequoted(resobj));