DPDK patches and discussions
 help / color / mirror / Atom feed
From: Tyler Retzlaff <roretzla@linux.microsoft.com>
To: dev@dpdk.org
Cc: Bruce Richardson <bruce.richardson@intel.com>,
	Tyler Retzlaff <roretzla@linux.microsoft.com>
Subject: [PATCH 2/2] build: build ring library with MSVC
Date: Tue, 27 Feb 2024 11:22:00 -0800	[thread overview]
Message-ID: <1709061720-4843-3-git-send-email-roretzla@linux.microsoft.com> (raw)
In-Reply-To: <1709061720-4843-1-git-send-email-roretzla@linux.microsoft.com>

* 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
             'kvargs',
             'telemetry',
             'eal',
+            'ring',
     ]
 endif
 
-- 
1.8.3.1


  parent reply	other threads:[~2024-02-27 19:22 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2024-02-27 19:21 [PATCH 0/2] build eal & ring libraries " Tyler Retzlaff
2024-02-27 19:21 ` [PATCH 1/2] build: build eal library " Tyler Retzlaff
2024-02-27 19:22 ` Tyler Retzlaff [this message]
2024-02-28  9:07 ` [PATCH 0/2] build eal & ring libraries " Bruce Richardson
2024-03-06 10:00 ` David Marchand
2024-03-06 14:48   ` Patrick Robb

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=1709061720-4843-3-git-send-email-roretzla@linux.microsoft.com \
    --to=roretzla@linux.microsoft.com \
    --cc=bruce.richardson@intel.com \
    --cc=dev@dpdk.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).