aboutsummaryrefslogtreecommitdiffstats
path: root/configure
diff options
context:
space:
mode:
authorMartin Storsjö <martin@martin.st>2012-09-10 17:35:39 +0300
committerMartin Storsjö <martin@martin.st>2012-09-10 19:46:06 +0300
commit5fa22ae34684b800b133a89dffca18b5d3334381 (patch)
tree43a6aa504463587aa3bca8419decb8988248e0e1 /configure
parentafb5ed55d2e4cc9cadd5ab6bcbf5b0a1abb5080a (diff)
downloadffmpeg-5fa22ae34684b800b133a89dffca18b5d3334381.tar.gz
configure: Adjust the xgetbv instrinsic check
The 64 bit cl.exe version 16.00.30319.01 crashes with an internal compiler error on the current check (and thus deduces it isn't supported, even if the actual usage in libavuil/x86/cpu.c works fine), but by assigning the value from the intrinsic to a variable, or returning it, it works fine. This error is fixed in cl.exe version 16.00.40219.01. Signed-off-by: Martin Storsjö <martin@martin.st>
Diffstat (limited to 'configure')
-rwxr-xr-xconfigure2
1 files changed, 1 insertions, 1 deletions
diff --git a/configure b/configure
index 29c4317f17..fec7b2543d 100755
--- a/configure
+++ b/configure
@@ -3029,7 +3029,7 @@ elif enabled sparc; then
elif enabled x86; then
- check_code ld immintrin.h "__xgetbv(0)" && enable xgetbv
+ check_code ld immintrin.h "return __xgetbv(0)" && enable xgetbv
check_code ld intrin.h "int info[4]; __cpuid(info, 0)" && enable cpuid
check_code ld intrin.h "__rdtsc()" && enable rdtsc
check_code ld intrin.h "unsigned int x = __readeflags()" && enable rweflags