[v2,8/8] net/idpf: use global AVX-512 variables
Checks
Commit Message
Replace per-driver checks for AVX-512 with the standard variables from
config/x86.
Signed-off-by: Bruce Richardson <bruce.richardson@intel.com>
---
drivers/net/idpf/meson.build | 19 ++-----------------
1 file changed, 2 insertions(+), 17 deletions(-)
@@ -14,21 +14,6 @@ sources = files(
'idpf_rxtx.c',
)
-if arch_subdir == 'x86'
- idpf_avx512_cpu_support = (
- cc.get_define('__AVX512F__', args: machine_args) != '' and
- cc.get_define('__AVX512BW__', args: machine_args) != '' and
- cc.get_define('__AVX512DQ__', args: machine_args) != ''
- )
-
- idpf_avx512_cc_support = (
- not machine_args.contains('-mno-avx512f') and
- cc.has_argument('-mavx512f') and
- cc.has_argument('-mavx512bw') and
- cc.has_argument('-mavx512dq')
- )
-
- if idpf_avx512_cpu_support == true or idpf_avx512_cc_support == true
- cflags += ['-DCC_AVX512_SUPPORT']
- endif
+if arch_subdir == 'x86'and cc_has_avx512
+ cflags += ['-DCC_AVX512_SUPPORT']
endif