* Use RTE_USE_C11_MEM_MODEL when building with MSVC. * When building with MSVC enable building of ring library.
Signed-off-by: Tyler Retzlaff <roret...@linux.microsoft.com> --- config/meson.build | 3 +++ lib/meson.build | 1 + 2 files changed, 4 insertions(+) diff --git a/config/meson.build b/config/meson.build index 68186e1..b995ac6 100644 --- a/config/meson.build +++ b/config/meson.build @@ -32,6 +32,9 @@ if is_ms_compiler # does not support inline assembly dpdk_conf.set('RTE_FORCE_INTRINSICS', 1) + # force the use of C++11 memory model in lib/ring + dpdk_conf.set('RTE_USE_C11_MEM_MODEL', 1) + # suppress warnings raised for using standard library functions # the MSVC compiler regards as unsafe but are used by DPDK dpdk_conf.set('_CRT_SECURE_NO_WARNINGS', 1) diff --git a/lib/meson.build b/lib/meson.build index d77bfbc..179a272 100644 --- a/lib/meson.build +++ b/lib/meson.build @@ -74,6 +74,7 @@ if is_ms_compiler 'kvargs', 'telemetry', 'eal', + 'ring', ] endif -- 1.8.3.1