From 3c8be9c35068a283a70054ded86de7495e2e0877 Mon Sep 17 00:00:00 2001 From: Richard Levitte Date: Wed, 31 Aug 2016 19:47:35 +0200 Subject: Have Configure's HASH or TABLE produce complete lists Because some targets execute perl code that might die, we risk incomplete lists. Make it so dying doesn't happen when we're listing targets. Reviewed-by: Rich Salz (cherry picked from commit d63c12c697faa4e2fa0e5d7565521a5813c86415) --- Configure | 3 +++ 1 file changed, 3 insertions(+) (limited to 'Configure') diff --git a/Configure b/Configure index 4fec746c4c..4fbce036ce 100755 --- a/Configure +++ b/Configure @@ -788,7 +788,9 @@ while (@tocheckfor) { @tocheckfor = (keys %new_tocheckfor); } +our $die = sub { die @_; }; if ($target eq "TABLE") { + local $die = sub { warn @_; }; foreach (sort keys %table) { print_table_entry($_, "TABLE"); } @@ -803,6 +805,7 @@ if ($target eq "LIST") { } if ($target eq "HASH") { + local $die = sub { warn @_; }; print "%table = (\n"; foreach (sort keys %table) { print_table_entry($_, "HASH"); -- cgit v1.2.3