From abf7bb75465db0ea5bff7e6e22f1d458017a0ea7 Mon Sep 17 00:00:00 2001 From: Jeffrey Walton Date: Mon, 24 May 2021 21:17:07 -0400 Subject: [PATCH] Update NEON and ACLE feature tests --- GNUmakefile | 12 ++++++------ GNUmakefile-cross | 12 ++++++------ 2 files changed, 12 insertions(+), 12 deletions(-) diff --git a/GNUmakefile b/GNUmakefile index a678b0ee..64796474 100644 --- a/GNUmakefile +++ b/GNUmakefile @@ -475,8 +475,8 @@ ifeq ($(DETECT_FEATURES),1) # Clang needs an option to include TPROG = TestPrograms/test_arm_neon_header.cpp - TOPT = -march=armv7-a -mfpu=neon - HAVE_OPT = $(shell $(CXX) $(TCXXFLAGS) -DCRYPTOPP_ARM_NEON_HEADER=1 $(ZOPT) $(TOPT) $(TPROG) -o $(TOUT) 2>&1 | wc -w) + TOPT = -DCRYPTOPP_ARM_NEON_HEADER=1 -march=armv7-a -mfpu=neon + HAVE_OPT = $(shell $(TCOMMAND) 2>&1 | wc -w) ifeq ($(strip $(HAVE_OPT)),0) TEXTRA += -DCRYPTOPP_ARM_NEON_HEADER=1 endif @@ -521,15 +521,15 @@ ifneq ($(IS_ARMV8),0) ifeq ($(DETECT_FEATURES),1) TPROG = TestPrograms/test_arm_neon_header.cpp - TOPT = - HAVE_OPT = $(shell $(CXX) $(TCXXFLAGS) -DCRYPTOPP_ARM_NEON_HEADER=1 $(ZOPT) $(TOPT) $(TPROG) -o $(TOUT) 2>&1 | wc -w) + TOPT = -DCRYPTOPP_ARM_NEON_HEADER=1 + HAVE_OPT = $(shell $(TCOMMAND) 2>&1 | wc -w) ifeq ($(strip $(HAVE_OPT)),0) TEXTRA += -DCRYPTOPP_ARM_NEON_HEADER=1 endif TPROG = TestPrograms/test_arm_acle_header.cpp - TOPT = -march=armv8-a - HAVE_OPT = $(shell $(CXX) $(TCXXFLAGS) -DCRYPTOPP_ARM_ACLE_HEADER=1 $(ZOPT) $(TOPT) $(TPROG) -o $(TOUT) 2>&1 | wc -w) + TOPT = -DCRYPTOPP_ARM_ACLE_HEADER=1 -march=armv8-a + HAVE_OPT = $(shell $(TCOMMAND) 2>&1 | wc -w) ifeq ($(strip $(HAVE_OPT)),0) TEXTRA += -DCRYPTOPP_ARM_ACLE_HEADER=1 endif diff --git a/GNUmakefile-cross b/GNUmakefile-cross index 80a71bf9..5f1b1f87 100644 --- a/GNUmakefile-cross +++ b/GNUmakefile-cross @@ -409,8 +409,8 @@ ifeq ($(DETECT_FEATURES),1) # Clang needs an option to include TPROG = TestPrograms/test_arm_neon_header.cpp - TOPT = $(NEON_FLAG) - HAVE_OPT = $(shell $(CXX) $(TCXXFLAGS) -DCRYPTOPP_ARM_NEON_HEADER=1 $(ZOPT) $(TOPT) $(TPROG) -o $(TOUT) 2>&1 | wc -w) + TOPT = -DCRYPTOPP_ARM_NEON_HEADER=1 $(NEON_FLAG) + HAVE_OPT = $(shell $(TCOMMAND) 2>&1 | wc -w) ifeq ($(strip $(HAVE_OPT)),0) TEXTRA += -DCRYPTOPP_ARM_NEON_HEADER=1 endif @@ -472,15 +472,15 @@ ifeq ($(DETECT_FEATURES),1) endif TPROG = TestPrograms/test_arm_neon_header.cpp - TOPT = - HAVE_OPT = $(shell $(CXX) $(TCXXFLAGS) -DCRYPTOPP_ARM_NEON_HEADER=1 $(ZOPT) $(TOPT) $(TPROG) -o $(TOUT) 2>&1 | wc -w) + TOPT = -DCRYPTOPP_ARM_NEON_HEADER=1 + HAVE_OPT = $(shell $(TCOMMAND) 2>&1 | wc -w) ifeq ($(strip $(HAVE_OPT)),0) TEXTRA += -DCRYPTOPP_ARM_NEON_HEADER=1 endif TPROG = TestPrograms/test_arm_acle_header.cpp - TOPT = $(ASIMD_FLAG) - HAVE_OPT = $(shell $(CXX) $(TCXXFLAGS) -DCRYPTOPP_ARM_ACLE_HEADER=1 $(ZOPT) $(TOPT) $(TPROG) -o $(TOUT) 2>&1 | wc -w) + TOPT = -DCRYPTOPP_ARM_ACLE_HEADER=1 $(ASIMD_FLAG) + HAVE_OPT = $(shell $(TCOMMAND) 2>&1 | wc -w) ifeq ($(strip $(HAVE_OPT)),0) TEXTRA += -DCRYPTOPP_ARM_ACLE_HEADER=1 endif