mirror of
https://gitlab.com/freepascal.org/fpc/source.git
synced 2025-04-16 18:39:30 +02:00
* write resource object file to unit output directory
git-svn-id: trunk@7276 -
This commit is contained in:
parent
4e375e0c38
commit
e18966c372
@ -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));
|
||||
|
Loading…
Reference in New Issue
Block a user