[2/2] build: build ring library with MSVC

Message ID 1709061720-4843-3-git-send-email-roretzla@linux.microsoft.com (mailing list archive)
State Accepted, archived
Delegated to: David Marchand
Series build eal & ring libraries with MSVC |


Context Check Description
ci/checkpatch success coding style OK
ci/loongarch-compilation success Compilation OK
ci/loongarch-unit-testing success Unit Testing PASS
ci/github-robot: build success github build: passed
ci/iol-mellanox-Performance success Performance Testing PASS
ci/iol-abi-testing success Testing PASS
ci/iol-compile-amd64-testing success Testing PASS
ci/Intel-compilation success Compilation OK
ci/intel-Testing success Testing PASS
ci/iol-unit-arm64-testing success Testing PASS
ci/intel-Functional success Functional PASS
ci/iol-compile-arm64-testing success Testing PASS
ci/iol-unit-amd64-testing success Testing PASS
ci/iol-intel-Performance success Performance Testing PASS
ci/iol-broadcom-Performance success Performance Testing PASS
ci/iol-intel-Functional success Functional Testing PASS
ci/iol-sample-apps-testing success Testing PASS
ci/iol-broadcom-Functional success Functional Testing PASS

Commit Message

Tyler Retzlaff Feb. 27, 2024, 7:22 p.m. UTC
  * Use RTE_USE_C11_MEM_MODEL when building with MSVC.

* When building with MSVC enable building of ring library.

Signed-off-by: Tyler Retzlaff <roretzla@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
+            'ring',