X-Git-Url: http://git.droids-corp.org/?a=blobdiff_plain;f=drivers%2Fnet%2Fice%2Fmeson.build;h=99e1b773a3560fa1f647c6ce0b0ff3749f2a580d;hb=eca9a0d6c8436eba70e60873dd5625bd52a65262;hp=e6fe7448798e1058baf67a543c346defebcc98e4;hpb=0b02c9519432e1d25694d58c023ee03d4e944883;p=dpdk.git diff --git a/drivers/net/ice/meson.build b/drivers/net/ice/meson.build index e6fe744879..99e1b773a3 100644 --- a/drivers/net/ice/meson.build +++ b/drivers/net/ice/meson.build @@ -22,7 +22,7 @@ if arch_subdir == 'x86' # compile AVX2 version if either: # a. we have AVX supported in minimum instruction set baseline # b. it's not minimum instruction set, but supported by compiler - if dpdk_conf.has('RTE_MACHINE_CPUFLAG_AVX2') + if cc.get_define('__AVX2__', args: machine_args) != '' sources += files('ice_rxtx_vec_avx2.c') elif cc.has_argument('-mavx2') ice_avx2_lib = static_library('ice_avx2_lib',