diff options
author | Richard Levitte <levitte@openssl.org> | 2019-10-04 00:00:24 +0200 |
---|---|---|
committer | Richard Levitte <levitte@openssl.org> | 2019-10-10 14:12:15 +0200 |
commit | 9eba5933a5ae80030ba66f79e625c4382811769e (patch) | |
tree | fa04764eea9470f6fb6ac590ea21fc7db4d14af0 /Configure | |
parent | 285daccdc0e20fa70ddda9ddcd1f22191425de8a (diff) |
Configure: Implement attributes for DEPEND[xxx]
We want to attach attributes on dependencies.
Reviewed-by: Matt Caswell <matt@openssl.org>
(Merged from https://github.com/openssl/openssl/pull/10088)
Diffstat (limited to 'Configure')
-rwxr-xr-x | Configure | 20 |
1 files changed, 16 insertions, 4 deletions
@@ -1922,10 +1922,17 @@ if ($builder eq "unified") { => sub { push @{$defines{$expand_variables->($+{INDEX})}}, tokenize($expand_variables->($+{VALUE})) if !@skip || $skip[$#skip] > 0 }, - qr/^\s* DEPEND ${index_re} = ${value_re} $/x - => sub { push @{$depends{$expand_variables->($+{INDEX})}}, - tokenize($expand_variables->($+{VALUE})) - if !@skip || $skip[$#skip] > 0 }, + qr/^\s* DEPEND ${index_re} ${attribs_re} = ${value_re} $/x + => sub { + if (!@skip || $skip[$#skip] > 0) { + my $i = $expand_variables->($+{INDEX}); + my @d = tokenize($expand_variables->($+{VALUE})); + push @{$depends{$i}}, @d; + $handle_attributes->($+{ATTRIBS}, + \$attributes{depends}->{$i}, + @d); + } + }, qr/^\s* GENERATE ${index_re} = ${value_re} $/x => sub { push @{$generate{$expand_variables->($+{INDEX})}}, $+{VALUE} @@ -2096,6 +2103,11 @@ EOF my $e = $1 // ""; $d = $`.$e; $unified_info{depends}->{$ddest}->{$d} = 1; + + # Fix up associated attributes + $unified_info{attributes}->{depends}->{$ddest}->{$d} = + $attributes{depends}->{$dest}->{$_} + if defined $attributes{depends}->{$dest}->{$_}; } } |