shithub: libvpx

Download patch

ref: 68a9b143d02436729e024f081c8d77b42f2e9d7f
parent: 37a0283b18a12b60e28050ea05682e5a39f0ec9e
author: Tom Finegan <tomfinegan@google.com>
date: Wed Jun 13 05:39:28 EDT 2018

Fix avx512 related MSVC build failure.

Check GCC specific AVX512 flags only when GCC is enabled.

Change-Id: I15dc2a0dbf8bce37f4364fedfd34a0a34882104b

--- 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