提交 79302211 编写于 作者: R Richard Levitte

Apply default after having checked the given config target is valid

Reviewed-by: NRich Salz <rsalz@openssl.org>
上级 800fe8e3
...@@ -841,10 +841,13 @@ if ($d) { ...@@ -841,10 +841,13 @@ if ($d) {
} }
$config{target} = $target; $config{target} = $target;
delete $table{$base_target}->{template}; # or the next test will fail. 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}); &usage if (!%target || $target{template});
# Set up defaults
my %target = ( %{$table{$base_target}}, %target );
$target{exe_extension}=""; $target{exe_extension}="";
$target{exe_extension}=".exe" if ($config{target} eq "DJGPP" $target{exe_extension}=".exe" if ($config{target} eq "DJGPP"
|| $config{target} =~ /^(?:Cygwin|mingw)/); || $config{target} =~ /^(?:Cygwin|mingw)/);
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册