ref: d998721f713024adad5f4c1b8e30737f2e06607c
parent: 6585fc753660873951a5fb4b037aca65a9faded2
parent: 68a9b143d02436729e024f081c8d77b42f2e9d7f
author: Tom Finegan <tomfinegan@chromium.org>
date: Wed Jun 13 13:50:39 EDT 2018
Merge "Fix avx512 related MSVC build failure."
--- a/build/make/configure.sh
+++ b/build/make/configure.sh
@@ -1335,7 +1335,8 @@
check_gcc_machine_options $ext avx512f avx512cd avx512bw avx512dq avx512vl
# Confirm that the compiler really supports avx512.
- check_cc -mavx512f <<EOF || RTCD_OPTIONS="${RTCD_OPTIONS}--disable-avx512 " && soft_disable avx512
+ if enabled gcc; then
+ check_cc -mavx512f <<EOF || RTCD_OPTIONS="${RTCD_OPTIONS}--disable-avx512 " && soft_disable avx512
#include <immintrin.h>
void f(void) {
__m512i x = _mm512_set1_epi16(0);
@@ -1342,6 +1343,7 @@
(void)x;
}
EOF
+ fi
else
# use the shortened version for the flag: sse4_1 -> sse4
check_gcc_machine_option ${ext%_*} $ext