From a24e62f54b48d01832fd0b80f97115927a777a0f Mon Sep 17 00:00:00 2001 From: Philippe Antoine Date: Mon, 2 Mar 2020 13:46:37 +0100 Subject: [PATCH] Fix build with clang assembler Reviewed-by: Matt Caswell Reviewed-by: Richard Levitte (Merged from https://github.com/openssl/openssl/pull/11219) --- crypto/perlasm/x86_64-xlate.pl | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/crypto/perlasm/x86_64-xlate.pl b/crypto/perlasm/x86_64-xlate.pl index 197bc48873..ff2df7902b 100755 --- a/crypto/perlasm/x86_64-xlate.pl +++ b/crypto/perlasm/x86_64-xlate.pl @@ -110,6 +110,11 @@ elsif (`$ENV{CC} -Wa,-v -c -o /dev/null -x assembler /dev/null 2>&1` { $gnuas=1; } +elsif (`$ENV{CC} --version 2>/dev/null` + =~ /clang .*/) +{ + $gnuas=1; +} my $cet_property; if ($flavour =~ /elf/) { -- 2.34.1