From 5c38c33f7880cae0de0c3adf0fbd2bd0e73721b4 Mon Sep 17 00:00:00 2001 From: Leyi Rong Date: Wed, 27 Jan 2021 22:27:06 +0800 Subject: [PATCH] net/i40e: disable AVX512 with MinGW Disable i40e AVX512 code path for Windows build to avoid the MinGW build error: Error: invalid register for .seh_savexmm Signed-off-by: Leyi Rong Tested-by: Pallavi Kadam Tested-by: David Marchand --- drivers/net/i40e/meson.build | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/drivers/net/i40e/meson.build b/drivers/net/i40e/meson.build index c0acdf4fd4..f5fc5a17e0 100644 --- a/drivers/net/i40e/meson.build +++ b/drivers/net/i40e/meson.build @@ -54,6 +54,10 @@ if arch_subdir == 'x86' cc.has_argument('-mavx512f') and cc.has_argument('-mavx512bw')) + if is_windows and cc.get_id() != 'clang' + i40e_avx512_cc_support = false + endif + if i40e_avx512_cpu_support == true or i40e_avx512_cc_support == true cflags += ['-DCC_AVX512_SUPPORT'] avx512_args = [cflags, '-mavx512f', '-mavx512bw'] -- 2.20.1