mirror of
https://gitlab.com/freepascal.org/fpc/source.git
synced 2025-08-08 02:45:56 +02:00
+ Also take resources in main program source into account
git-svn-id: trunk@990 -
This commit is contained in:
parent
9fe7ee0b81
commit
a578c9b7ed
@ -283,11 +283,13 @@ implementation
|
|||||||
begin
|
begin
|
||||||
hp:=tused_unit(usedunits.first);
|
hp:=tused_unit(usedunits.first);
|
||||||
found:=false;
|
found:=false;
|
||||||
While Assigned(hp) and not Found do
|
Found:=((current_module.flags and uf_has_resourcefiles)=uf_has_resourcefiles);
|
||||||
begin
|
If not found then
|
||||||
Found:=((hp.u.flags and uf_has_resourcefiles)=uf_has_resourcefiles);
|
While Assigned(hp) and not Found do
|
||||||
hp:=tused_unit(hp.next);
|
begin
|
||||||
end;
|
Found:=((hp.u.flags and uf_has_resourcefiles)=uf_has_resourcefiles);
|
||||||
|
hp:=tused_unit(hp.next);
|
||||||
|
end;
|
||||||
ResourceInfo:=TAAsmOutput.Create;
|
ResourceInfo:=TAAsmOutput.Create;
|
||||||
if found then
|
if found then
|
||||||
begin
|
begin
|
||||||
|
@ -660,12 +660,15 @@ begin
|
|||||||
postprocessexecutable:=True;
|
postprocessexecutable:=True;
|
||||||
if target_res.id=res_elf then
|
if target_res.id=res_elf then
|
||||||
begin
|
begin
|
||||||
hp:=tused_unit(usedunits.first);
|
found:=((current_module.flags and uf_has_resourcefiles)=uf_has_resourcefiles);
|
||||||
found:=false;
|
if not found then
|
||||||
While Assigned(hp) and not Found do
|
|
||||||
begin
|
begin
|
||||||
Found:=((hp.u.flags and uf_has_resourcefiles)=uf_has_resourcefiles);
|
hp:=tused_unit(usedunits.first);
|
||||||
hp:=tused_unit(hp.next);
|
While Assigned(hp) and not Found do
|
||||||
|
begin
|
||||||
|
Found:=((hp.u.flags and uf_has_resourcefiles)=uf_has_resourcefiles);
|
||||||
|
hp:=tused_unit(hp.next);
|
||||||
|
end;
|
||||||
end;
|
end;
|
||||||
if found then
|
if found then
|
||||||
begin
|
begin
|
||||||
|
Loading…
Reference in New Issue
Block a user