From 1577ae083900770b3618a4ec2704f5bd5e72f03c Mon Sep 17 00:00:00 2001 From: Alexander Smorkalov Date: Thu, 22 Feb 2024 12:52:26 +0300 Subject: [PATCH] Disable fp16 instructions detection on Windows ARM64 because of build issues #25052. --- cmake/checks/cpu_fp16.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/cmake/checks/cpu_fp16.cpp b/cmake/checks/cpu_fp16.cpp index 6bffc4792a..c57b5d47b6 100644 --- a/cmake/checks/cpu_fp16.cpp +++ b/cmake/checks/cpu_fp16.cpp @@ -11,7 +11,8 @@ int test() _mm_storel_epi64((__m128i*)dst, v_dst); return (int)dst[0]; } -#elif (defined __GNUC__ && (defined __arm__ || defined __aarch64__)) || (defined _MSC_VER && defined _M_ARM64) +#elif (defined __GNUC__ && (defined __arm__ || defined __aarch64__)) /*|| (defined _MSC_VER && defined _M_ARM64)*/ +// Windows + ARM64 case disabled: https://github.com/opencv/opencv/issues/25052 #include "arm_neon.h" int test() {