summaryrefslogtreecommitdiffstats
path: root/configure
diff options
context:
space:
mode:
authorThiago Macieira <thiago.macieira@intel.com>2015-11-17 00:11:53 -0800
committerThiago Macieira <thiago.macieira@intel.com>2015-12-09 00:07:52 +0000
commita48b8ecc9ceb203be588d4eefa8de19800b91fe3 (patch)
tree11527d19bb1f65483ef83df85a5b8756b192a16a /configure
parent8dc43adcbb95eb595d8da8e68c8d2a0dc027f1ad (diff)
configure: don't test AVX512 if AVX2 wasn't found
Change-Id: I14839ba5678944c2864bffff14176f0e9236ad8c Reviewed-by: Oswald Buddenhagen <oswald.buddenhagen@theqtcompany.com>
Diffstat (limited to 'configure')
-rwxr-xr-xconfigure3
1 files changed, 3 insertions, 0 deletions
diff --git a/configure b/configure
index b149970b7d..fb9d322684 100755
--- a/configure
+++ b/configure
@@ -4586,6 +4586,9 @@ if [ "${CFG_AVX2}" = "auto" ]; then
fi
# detect avx512 support
+if [ "${CFG_AVX2}" = "no" ]; then
+ CFG_AVX512=
+fi
if [ "${CFG_AVX512}" = "auto" ]; then
# First, test for AVX-512 Foundation
if compileTest common/avx512 "avx512f" AVX512=F; then