Now that the issues preventing this lib from being compiled with MSVC are fixed it can be included in the compilation.
The "net" library will automatically get compiled as well as it has a dependency on "mbuf" which will now get fulfilled. Signed-off-by: Andre Muezerie <andre...@linux.microsoft.com> Acked-by: Bruce Richardson <bruce.richard...@intel.com> --- lib/mbuf/meson.build | 6 ------ lib/net/meson.build | 7 ++++++- 2 files changed, 6 insertions(+), 7 deletions(-) diff --git a/lib/mbuf/meson.build b/lib/mbuf/meson.build index 2cee9057a5..0435c5e628 100644 --- a/lib/mbuf/meson.build +++ b/lib/mbuf/meson.build @@ -1,12 +1,6 @@ # SPDX-License-Identifier: BSD-3-Clause # Copyright(c) 2017 Intel Corporation -if is_ms_compiler - build = false - reason = 'not supported building with Visual Studio Toolset' - subdir_done() -endif - sources = files( 'rte_mbuf.c', 'rte_mbuf_ptype.c', diff --git a/lib/net/meson.build b/lib/net/meson.build index 7a6c419f40..c528fcc9a2 100644 --- a/lib/net/meson.build +++ b/lib/net/meson.build @@ -43,7 +43,12 @@ use_function_versioning = true if dpdk_conf.has('RTE_ARCH_X86_64') sources += files('net_crc_sse.c') - cflags += ['-mpclmul', '-maes'] + cflags_options = ['-mpclmul', '-maes'] + foreach option:cflags_options + if cc.has_argument(option) + cflags += option + endif + endforeach # only build AVX-512 support if we also have PCLMULQDQ support if cc.has_argument('-mvpclmulqdq') sources_avx512 += files('net_crc_avx512.c') -- 2.49.0.vfs.0.0