]> git.ipfire.org Git - thirdparty/openssl.git/commitdiff
uplink-x86_64.pl: make x86_64-xlate.pl accept $flavour parameter
authorFs <Fsu0413@vip.qq.com>
Sat, 6 Jan 2024 00:43:22 +0000 (08:43 +0800)
committerTomas Mraz <tomas@openssl.org>
Fri, 12 Jan 2024 07:56:14 +0000 (08:56 +0100)
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)

ms/uplink-x86_64.pl

index 5564c2c7bab1c57861a87489cc202cbe7880c021..8b28949ccf8ef5dfe5389e794695377eda4e92ca 100755 (executable)
@@ -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}.");