mirror of
https://gitlab.com/freepascal.org/fpc/source.git
synced 2025-08-17 09:19:23 +02:00
* Fixed .res resources handling when -o switch is used to specify executable full path and name in the same folder where .res files are located. Mantis #12856.
git-svn-id: trunk@12437 -
This commit is contained in:
parent
a3732f5cfc
commit
69d1b4813c
@ -397,7 +397,7 @@ begin
|
|||||||
if (target_info.res<>res_none) and (target_res.resourcefileclass=nil) then
|
if (target_info.res<>res_none) and (target_res.resourcefileclass=nil) then
|
||||||
exit;
|
exit;
|
||||||
|
|
||||||
p:=ExtractFilePath(current_module.mainsource^);
|
p:=ExtractFilePath(ExpandFileName(current_module.mainsource^));
|
||||||
res:=TCmdStrListItem(current_module.ResourceFiles.First);
|
res:=TCmdStrListItem(current_module.ResourceFiles.First);
|
||||||
while res<>nil do
|
while res<>nil do
|
||||||
begin
|
begin
|
||||||
@ -416,7 +416,7 @@ begin
|
|||||||
if resourcefile.IsCompiled(s) then
|
if resourcefile.IsCompiled(s) then
|
||||||
begin
|
begin
|
||||||
resourcefile.free;
|
resourcefile.free;
|
||||||
if AnsiCompareText(current_module.outputpath^, p) <> 0 then
|
if AnsiCompareFileName(IncludeTrailingPathDelimiter(ExpandFileName(current_module.outputpath^)), p) <> 0 then
|
||||||
begin
|
begin
|
||||||
{ Copy .res file to units output dir. Otherwise .res file will not be found
|
{ Copy .res file to units output dir. Otherwise .res file will not be found
|
||||||
when only compiled units path is available }
|
when only compiled units path is available }
|
||||||
|
Loading…
Reference in New Issue
Block a user