Skip to content

Commit

Permalink
Configurations/gentemplate.pm: Generate generators too, when necessary
Browse files Browse the repository at this point in the history
A generator in a `GENERATE[generated]=generator` build.info statement may
itself be generated.  That needs to be taken into account.

This was always meant to be, but we missed the spot, for lack of use cases.
Now we have one.

Reviewed-by: Matt Caswell <[email protected]>
Reviewed-by: Tomas Mraz <[email protected]>
(Merged from openssl#18263)
  • Loading branch information
levitte authored and t8m committed May 27, 2022
1 parent db24ed5 commit 42b4a8a
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions Configurations/gentemplate.pm
Original file line number Diff line number Diff line change
Expand Up @@ -227,6 +227,10 @@ sub dogenerate {
foreach (@{$self->{info}->{depends}->{$src} // []}) {
$self->dogenerate($_, $obj, $bin, %opts);
}
# The generator itself may be is generated
if ($self->{info}->{generate}->{$script}) {
$self->dogenerate($script, $obj, $bin, %opts);
}
}
$cache{$src} = 1;
}
Expand Down

0 comments on commit 42b4a8a

Please sign in to comment.