Patch Detail
get:
Show a patch.
patch:
Update a patch.
put:
Update a patch.
GET /api/patches/130446/?format=api
http://patches.dpdk.org/api/patches/130446/?format=api", "web_url": "http://patches.dpdk.org/project/dpdk/patch/1692222976-2908-5-git-send-email-roretzla@linux.microsoft.com/", "project": { "id": 1, "url": "http://patches.dpdk.org/api/projects/1/?format=api", "name": "DPDK", "link_name": "dpdk", "list_id": "dev.dpdk.org", "list_email": "dev@dpdk.org", "web_url": "http://core.dpdk.org", "scm_url": "git://dpdk.org/dpdk", "webscm_url": "http://git.dpdk.org/dpdk", "list_archive_url": "https://inbox.dpdk.org/dev", "list_archive_url_format": "https://inbox.dpdk.org/dev/{}", "commit_url_format": "" }, "msgid": "<1692222976-2908-5-git-send-email-roretzla@linux.microsoft.com>", "list_archive_url": "https://inbox.dpdk.org/dev/1692222976-2908-5-git-send-email-roretzla@linux.microsoft.com", "date": "2023-08-16T21:56:16", "name": "[v5,4/4] build: enable MSVC specific compiler options", "commit_ref": null, "pull_url": null, "state": "accepted", "archived": true, "hash": "4eeefef2611a4c91246116a2d28baebe4d61b9f4", "submitter": { "id": 2077, "url": "http://patches.dpdk.org/api/people/2077/?format=api", "name": "Tyler Retzlaff", "email": "roretzla@linux.microsoft.com" }, "delegate": { "id": 24651, "url": "http://patches.dpdk.org/api/users/24651/?format=api", "username": "dmarchand", "first_name": "David", "last_name": "Marchand", "email": "david.marchand@redhat.com" }, "mbox": "http://patches.dpdk.org/project/dpdk/patch/1692222976-2908-5-git-send-email-roretzla@linux.microsoft.com/mbox/", "series": [ { "id": 29256, "url": "http://patches.dpdk.org/api/series/29256/?format=api", "web_url": "http://patches.dpdk.org/project/dpdk/list/?series=29256", "date": "2023-08-16T21:56:12", "name": "enable use of the MSVC compiler", "version": 5, "mbox": "http://patches.dpdk.org/series/29256/mbox/" } ], "comments": "http://patches.dpdk.org/api/patches/130446/comments/", "check": "warning", "checks": "http://patches.dpdk.org/api/patches/130446/checks/", "tags": {}, "related": [], "headers": { "Return-Path": "<dev-bounces@dpdk.org>", "X-Original-To": "patchwork@inbox.dpdk.org", "Delivered-To": "patchwork@inbox.dpdk.org", "Received": [ "from mails.dpdk.org (mails.dpdk.org [217.70.189.124])\n\tby inbox.dpdk.org (Postfix) with ESMTP id 2EE7E43086;\n\tWed, 16 Aug 2023 23:56:40 +0200 (CEST)", "from mails.dpdk.org (localhost [127.0.0.1])\n\tby mails.dpdk.org (Postfix) with ESMTP id 086064325F;\n\tWed, 16 Aug 2023 23:56:28 +0200 (CEST)", "from linux.microsoft.com (linux.microsoft.com [13.77.154.182])\n by mails.dpdk.org (Postfix) with ESMTP id 5BC21411F3\n for <dev@dpdk.org>; Wed, 16 Aug 2023 23:56:23 +0200 (CEST)", "by linux.microsoft.com (Postfix, from userid 1086)\n id B0959211F7A4; Wed, 16 Aug 2023 14:56:22 -0700 (PDT)" ], "DKIM-Filter": "OpenDKIM Filter v2.11.0 linux.microsoft.com B0959211F7A4", "DKIM-Signature": "v=1; a=rsa-sha256; c=relaxed/relaxed; d=linux.microsoft.com;\n s=default; t=1692222982;\n bh=NN2KEvV/wiy6dzxnoQbxniRicEq/DgLfdw6xnWyRhpM=;\n h=From:To:Cc:Subject:Date:In-Reply-To:References:From;\n b=nj+Q2EKiMuV4BjO9fcDjX5lkKi2FiHWWLek7fJExU4n9JR4hqFL2IsBR9UKtYUcv4\n QzSxV58l8td6Vv1y6eYwSJBcgrrNwOwrYGdKRV+JaADY7t3jGla4i2M+FhstrBM8HU\n eV4Pl3XcPdYrt5UDamYK411DaYoJC8vgjpWFdDKA=", "From": "Tyler Retzlaff <roretzla@linux.microsoft.com>", "To": "dev@dpdk.org", "Cc": "Bruce Richardson <bruce.richardson@intel.com>,\n Konstantin Ananyev <konstantin.v.ananyev@yandex.ru>,\n david.marchand@redhat.com, thomas@monjalon.net,\n Tyler Retzlaff <roretzla@linux.microsoft.com>", "Subject": "[PATCH v5 4/4] build: enable MSVC specific compiler options", "Date": "Wed, 16 Aug 2023 14:56:16 -0700", "Message-Id": "<1692222976-2908-5-git-send-email-roretzla@linux.microsoft.com>", "X-Mailer": "git-send-email 1.8.3.1", "In-Reply-To": "<1692222976-2908-1-git-send-email-roretzla@linux.microsoft.com>", "References": "<1674674707-3094-1-git-send-email-roretzla@linux.microsoft.com>\n <1692222976-2908-1-git-send-email-roretzla@linux.microsoft.com>", "X-BeenThere": "dev@dpdk.org", "X-Mailman-Version": "2.1.29", "Precedence": "list", "List-Id": "DPDK patches and discussions <dev.dpdk.org>", "List-Unsubscribe": "<https://mails.dpdk.org/options/dev>,\n <mailto:dev-request@dpdk.org?subject=unsubscribe>", "List-Archive": "<http://mails.dpdk.org/archives/dev/>", "List-Post": "<mailto:dev@dpdk.org>", "List-Help": "<mailto:dev-request@dpdk.org?subject=help>", "List-Subscribe": "<https://mails.dpdk.org/listinfo/dev>,\n <mailto:dev-request@dpdk.org?subject=subscribe>", "Errors-To": "dev-bounces@dpdk.org" }, "content": "* Enable optional use of C11 atomics support.\n* Enable use of C23 typeof operator.\n* Explicitly force intrinsics when building with MSVC.\n* Disable MSVC C runtime checks.\n\nSigned-off-by: Tyler Retzlaff <roretzla@linux.microsoft.com>\n---\n config/meson.build | 16 ++++++++++++++++\n 1 file changed, 16 insertions(+)", "diff": "diff --git a/config/meson.build b/config/meson.build\nindex 821a1c3..7a04347 100644\n--- a/config/meson.build\n+++ b/config/meson.build\n@@ -27,6 +27,22 @@ dpdk_conf.set('RTE_EXEC_ENV_' + exec_env.to_upper(), 1)\n is_ms_compiler = is_windows and (cc.get_id() == 'msvc')\n is_ms_linker = is_windows and (cc.get_id() == 'clang' or is_ms_compiler)\n \n+if is_ms_compiler\n+ # force the use of intrinsics the MSVC compiler (except x86)\n+ # does not support inline assembly\n+ dpdk_conf.set('RTE_FORCE_INTRINSICS', 1)\n+\n+ # suppress warnings raised for using standard library functions\n+ # the MSVC compiler regards as unsafe but are used by DPDK\n+ dpdk_conf.set('_CRT_SECURE_NO_WARNINGS', 1)\n+\n+ # enable non-locking atomic operations\n+ add_project_arguments('/experimental:c11atomics', language: 'c')\n+\n+ # enable typeof operator\n+ add_project_arguments('/d1experimental:typeof', language: 'c')\n+endif\n+\n # set the major version, which might be used by drivers and libraries\n # depending on the configuration options\n pver = meson.project_version().split('.')\n", "prefixes": [ "v5", "4/4" ] }{ "id": 130446, "url": "