diff options
author | Fs <Fsu0413@vip.qq.com> | 2024-01-06 08:43:22 +0800 |
---|---|---|
committer | Tomas Mraz <tomas@openssl.org> | 2024-01-12 08:56:14 +0100 |
commit | 0856bf519ffc7707fc01b763aed47e357a513820 (patch) | |
tree | 1b35e8e96cc9c18cf90ef7473e3ab07da54d68dc /ms/uplink-x86_64.pl | |
parent | 9eabb30ab4491bdcf49c5bfeef659ca846da5160 (diff) |
uplink-x86_64.pl: make x86_64-xlate.pl accept $flavour parameter
Match behavior of all other x86_64 asm.
CLA: trivial
Reviewed-by: Tom Cosgrove <tom.cosgrove@arm.com>
Reviewed-by: Tomas Mraz <tomas@openssl.org>
(Merged from https://github.com/openssl/openssl/pull/23219)
Diffstat (limited to 'ms/uplink-x86_64.pl')
-rwxr-xr-x | ms/uplink-x86_64.pl | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/ms/uplink-x86_64.pl b/ms/uplink-x86_64.pl index 5564c2c7ba..8b28949ccf 100755 --- a/ms/uplink-x86_64.pl +++ b/ms/uplink-x86_64.pl @@ -8,9 +8,10 @@ # $output is the last argument if it looks like a file (it has an extension) $output = $#ARGV >= 0 && $ARGV[$#ARGV] =~ m|\.\w+$| ? pop : undef; +$flavour = $#ARGV >= 0 && $ARGV[0] !~ m|\.| ? shift : undef; $0 =~ m/(.*[\/\\])[^\/\\]+$/; $dir=$1; -open OUT,"| \"$^X\" \"${dir}../crypto/perlasm/x86_64-xlate.pl\" \"$output\"" +open OUT,"| \"$^X\" \"${dir}../crypto/perlasm/x86_64-xlate.pl\" $flavour \"$output\"" or die "can't call ${dir}../crypto/perlasm/x86_64-xlate.pl: $!"; *STDOUT=*OUT; push(@INC,"${dir}."); |