Guard use of '-march=native' in test script

pull/308/head
Jeffrey Walton 2016-09-23 02:53:20 -04:00
parent f9ee4e2dab
commit 2ac9ea1253
1 changed files with 4 additions and 1 deletions

View File

@ -4707,7 +4707,10 @@ if [[ ("$HAVE_X86_AES" -ne "0" || "$HAVE_X86_RDRAND" -ne "0" || "$HAVE_X86_RDSEE
echo "Testing: AES, RDRAND and RDSEED" | tee -a "$TEST_RESULTS"
echo
OPTS=("-march=native")
OPTS=()
if [[ ("$GCC_COMPILER" -ne "0") ]]; thn
OPTS=("-march=native")
fi
if [[ "$HAVE_X86_AES" -ne "0" ]]; then
OPTS+=("-maes")
fi