Commit 79302211 authored by Richard Levitte's avatar Richard Levitte
Browse files

Apply default after having checked the given config target is valid



Reviewed-by: default avatarRich Salz <rsalz@openssl.org>
parent 800fe8e3
Loading
Loading
Loading
Loading
+4 −1
Original line number Diff line number Diff line
@@ -841,10 +841,13 @@ if ($d) {
}
$config{target} = $target;
delete $table{$base_target}->{template}; # or the next test will fail.
my %target = ( %{$table{$base_target}}, resolve_config($target) );
my %target = resolve_config($target);

&usage if (!%target || $target{template});

# Set up defaults
my %target = ( %{$table{$base_target}}, %target );

$target{exe_extension}="";
$target{exe_extension}=".exe" if ($config{target} eq "DJGPP"
                                  || $config{target} =~ /^(?:Cygwin|mingw)/);