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 <leyi.rong@intel.com>
Tested-by: Pallavi Kadam <pallavi.kadam@intel.com>
Tested-by: David Marchand <david.marchand@redhat.com>
This commit is contained in:
Leyi Rong 2021-01-27 22:27:06 +08:00 committed by Thomas Monjalon
parent 549bfc8316
commit 5c38c33f78

View File

@ -54,6 +54,10 @@ if arch_subdir == 'x86'
cc.has_argument('-mavx512f') and cc.has_argument('-mavx512f') and
cc.has_argument('-mavx512bw')) 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 if i40e_avx512_cpu_support == true or i40e_avx512_cc_support == true
cflags += ['-DCC_AVX512_SUPPORT'] cflags += ['-DCC_AVX512_SUPPORT']
avx512_args = [cflags, '-mavx512f', '-mavx512bw'] avx512_args = [cflags, '-mavx512f', '-mavx512bw']