Fix compile error when building with no-asm
authorfangming.fang <fangming.fang@arm.com>
Wed, 29 Dec 2021 05:09:07 +0000 (05:09 +0000)
committerTomas Mraz <tomas@openssl.org>
Tue, 4 Jan 2022 12:08:45 +0000 (13:08 +0100)
Reviewed-by: Bernd Edlinger <bernd.edlinger@hotmail.de>
Reviewed-by: Paul Dale <pauli@openssl.org>
Reviewed-by: Tomas Mraz <tomas@openssl.org>
(Merged from https://github.com/openssl/openssl/pull/17376)

test/rdcpu_sanitytest.c

index df1858ae9b89d8427fadcd564932f950d5b7fcb5..08af5b089566ed682607b2218de34b2b44f1de0b 100644 (file)
@@ -23,7 +23,7 @@ size_t OPENSSL_ia32_rdseed_bytes(unsigned char *buf, size_t len);
 # define IS_X_86 0
 #endif
 
-#if defined(__aarch64__)
+#if defined(__aarch64__) && defined(OPENSSL_CPUID_OBJ)
 # define IS_AARCH_64 1
 # include "arm_arch.h"