diff options
author | Richard Levitte <levitte@openssl.org> | 2022-05-25 04:54:54 +0200 |
---|---|---|
committer | Tomas Mraz <tomas@openssl.org> | 2022-05-27 08:10:49 +0200 |
commit | 42b4a8ab961e3d3be4abffe3aea458448b2e47b4 (patch) | |
tree | 2e21c1585e8c1c15efeb6d509f0e59e70e0c13f0 /Configurations/gentemplate.pm | |
parent | Generate the preprocessed .s files for chacha and poly 1305 on ia64 (diff) | |
download | openssl-42b4a8ab961e3d3be4abffe3aea458448b2e47b4.tar.xz openssl-42b4a8ab961e3d3be4abffe3aea458448b2e47b4.zip |
Configurations/gentemplate.pm: Generate generators too, when necessary
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 <matt@openssl.org>
Reviewed-by: Tomas Mraz <tomas@openssl.org>
(Merged from https://github.com/openssl/openssl/pull/18263)
Diffstat (limited to 'Configurations/gentemplate.pm')
-rw-r--r-- | Configurations/gentemplate.pm | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/Configurations/gentemplate.pm b/Configurations/gentemplate.pm index 4bf19af9c2..3fd5f675c9 100644 --- a/Configurations/gentemplate.pm +++ b/Configurations/gentemplate.pm @@ -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; } |