From patchwork Thu Oct 14 19:56:51 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Pavan Nikhilesh Bhagavatula X-Patchwork-Id: 101680 X-Patchwork-Delegate: ferruh.yigit@amd.com Return-Path: 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]) by inbox.dpdk.org (Postfix) with ESMTP id E9BB3A0C4B; Thu, 14 Oct 2021 21:57:03 +0200 (CEST) Received: from [217.70.189.124] (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 7631640041; Thu, 14 Oct 2021 21:57:03 +0200 (CEST) Received: from mx0b-0016f401.pphosted.com (mx0b-0016f401.pphosted.com [67.231.156.173]) by mails.dpdk.org (Postfix) with ESMTP id A3E494003C for ; Thu, 14 Oct 2021 21:57:01 +0200 (CEST) Received: from pps.filterd (m0045851.ppops.net [127.0.0.1]) by mx0b-0016f401.pphosted.com (8.16.1.2/8.16.1.2) with SMTP id 19ECiBcu030214; Thu, 14 Oct 2021 12:57:01 -0700 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=marvell.com; h=from : to : cc : subject : date : message-id : in-reply-to : references : mime-version : content-transfer-encoding : content-type; s=pfpt0220; bh=uiCaSZNmpkyNH5ogV7Z4VxO+/bDDxHAlcBu0WCHjmzM=; b=jrEGXVus0vXiXKBETqeeFL0gSxwUzHKtGHcfTFaQJRAnhVu/vCJByk+cmmsxz1FVlG1R 0+s4rVFJqNPjtLuQRQhppFhGywIEOM74BNsPvn60yiPdxMbtwaVcuLnK1/ulHxCSQT3/ b8BsH3SYw7EuLCs5kRcNju9fVzm3BL4y8+OUwYnYyd7DPlRrcCIx9w905cZYAzEef+tu tgRzEM5FXN6qQX8BSagm0lvJ6g4XXjHSO6WExpzqLXn6vZPbp7KmoK3M3muti+Vcr44x 4p22d8zBpf4jSNteE0v9JVII/XVMD/FHP23lxkfiB3I8VpcyQcnWeSyJb6w8wiUrBXZZ 9Q== Received: from dc5-exch01.marvell.com ([199.233.59.181]) by mx0b-0016f401.pphosted.com with ESMTP id 3bpjk1amwc-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-SHA384 bits=256 verify=NOT); Thu, 14 Oct 2021 12:57:00 -0700 Received: from DC5-EXCH01.marvell.com (10.69.176.38) by DC5-EXCH01.marvell.com (10.69.176.38) with Microsoft SMTP Server (TLS) id 15.0.1497.18; Thu, 14 Oct 2021 12:56:58 -0700 Received: from maili.marvell.com (10.69.176.80) by DC5-EXCH01.marvell.com (10.69.176.38) with Microsoft SMTP Server id 15.0.1497.18 via Frontend Transport; Thu, 14 Oct 2021 12:56:58 -0700 Received: from BG-LT7430.marvell.com (BG-LT7430.marvell.com [10.28.177.176]) by maili.marvell.com (Postfix) with ESMTP id 92AC65B6929; Thu, 14 Oct 2021 12:56:56 -0700 (PDT) From: To: , , Maciej Czekaj CC: , Pavan Nikhilesh Date: Fri, 15 Oct 2021 01:26:51 +0530 Message-ID: <20211014195653.625-1-pbhagavatula@marvell.com> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20211004055638.13176-1-pbhagavatula@marvell.com> References: <20211004055638.13176-1-pbhagavatula@marvell.com> MIME-Version: 1.0 X-Proofpoint-ORIG-GUID: JXIBPsC-Pehk_CdOEPFGnDRgBKb8OHJq X-Proofpoint-GUID: JXIBPsC-Pehk_CdOEPFGnDRgBKb8OHJq X-Proofpoint-Virus-Version: vendor=baseguard engine=ICAP:2.0.182.1,Aquarius:18.0.790,Hydra:6.0.425,FMLib:17.0.607.475 definitions=2021-10-14_10,2021-10-14_02,2020-04-07_01 Subject: [dpdk-dev] [PATCH v6 1/3] net/thunderx: enable build only on 64-bit Linux X-BeenThere: dev@dpdk.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: DPDK patches and discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: dev-bounces@dpdk.org Sender: "dev" From: Pavan Nikhilesh Since AARCH32 extension is not implemented on thunderx family, only enable build for 64bit. Due to Linux kernel AF(Admin function) driver dependency, only enable build for Linux. Signed-off-by: Pavan Nikhilesh Acked-by: Jerin Jacob --- v6 Changes: - Update commit log to describe why 32bit is not supported. v5 Changes: - s/fuction/function. v4 Changes: - Update commit message regarding dependency on AF driver. drivers/net/thunderx/meson.build | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) -- 2.17.1 diff --git a/drivers/net/thunderx/meson.build b/drivers/net/thunderx/meson.build index 4bbcea7f93..da665bd76f 100644 --- a/drivers/net/thunderx/meson.build +++ b/drivers/net/thunderx/meson.build @@ -1,9 +1,9 @@ # SPDX-License-Identifier: BSD-3-Clause # Copyright(c) 2017 Cavium, Inc -if is_windows +if not is_linux or not dpdk_conf.get('RTE_ARCH_64') build = false - reason = 'not supported on Windows' + reason = 'only supported on 64-bit Linux' subdir_done() endif From patchwork Thu Oct 14 19:56:52 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Pavan Nikhilesh Bhagavatula X-Patchwork-Id: 101681 X-Patchwork-Delegate: ferruh.yigit@amd.com Return-Path: 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]) by inbox.dpdk.org (Postfix) with ESMTP id 77C80A0C47; Thu, 14 Oct 2021 21:57:08 +0200 (CEST) Received: from [217.70.189.124] (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 564C341142; Thu, 14 Oct 2021 21:57:08 +0200 (CEST) Received: from mx0b-0016f401.pphosted.com (mx0b-0016f401.pphosted.com [67.231.156.173]) by mails.dpdk.org (Postfix) with ESMTP id AAF2541140 for ; Thu, 14 Oct 2021 21:57:06 +0200 (CEST) Received: from pps.filterd (m0045851.ppops.net [127.0.0.1]) by mx0b-0016f401.pphosted.com (8.16.1.2/8.16.1.2) with SMTP id 19ECiBcv030214; Thu, 14 Oct 2021 12:57:05 -0700 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=marvell.com; h=from : to : cc : subject : date : message-id : in-reply-to : references : mime-version : content-transfer-encoding : content-type; s=pfpt0220; bh=a4wDkAtUc4Gs6m1rFor/GQXn1XPXxQ7MCiUqj1NBnMI=; b=FEIRJMZRzCNDeyrrJzl7NeNGkMSposuaEsYM8qck22Q+VTka6q6/ouFxU3K9raMru8Lo 5lOKJ6vhyPRwWvXDf3R9UiOYtffqxW0zLju3/DZt9USFJOO1MUmVCa8dIB2qATBzZote 2Qp3vZuu3/s024UK8ieSYXdZTHfhLEWjU0GaKmT30ZborMM5aIUHXdW0n3xizWe+xl/S j9CcG5KQFLlD8ek3JAPuq4f88gGjSC4bN/9dnbiP6lzz9fsVGgQKo3m7ze468W9CGd6Y eJGVRBas5Dg+qdGwegpYU9KWKxCefglVgO65vYH1TSkfyQJpI+WkpCbn7ThGuYHzIyWX 5g== Received: from dc5-exch01.marvell.com ([199.233.59.181]) by mx0b-0016f401.pphosted.com with ESMTP id 3bpjk1amwn-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-SHA384 bits=256 verify=NOT); Thu, 14 Oct 2021 12:57:05 -0700 Received: from DC5-EXCH01.marvell.com (10.69.176.38) by DC5-EXCH01.marvell.com (10.69.176.38) with Microsoft SMTP Server (TLS) id 15.0.1497.18; Thu, 14 Oct 2021 12:57:03 -0700 Received: from maili.marvell.com (10.69.176.80) by DC5-EXCH01.marvell.com (10.69.176.38) with Microsoft SMTP Server id 15.0.1497.18 via Frontend Transport; Thu, 14 Oct 2021 12:57:03 -0700 Received: from BG-LT7430.marvell.com (BG-LT7430.marvell.com [10.28.177.176]) by maili.marvell.com (Postfix) with ESMTP id EF7515B6926; Thu, 14 Oct 2021 12:56:59 -0700 (PDT) From: To: , , Harman Kalra , Ashish Gupta , Fiona Trahe , Anoob Joseph CC: , Pavan Nikhilesh Date: Fri, 15 Oct 2021 01:26:52 +0530 Message-ID: <20211014195653.625-2-pbhagavatula@marvell.com> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20211014195653.625-1-pbhagavatula@marvell.com> References: <20211004055638.13176-1-pbhagavatula@marvell.com> <20211014195653.625-1-pbhagavatula@marvell.com> MIME-Version: 1.0 X-Proofpoint-ORIG-GUID: YknqlyruGN5gWf-BaK0JE6ASCA-vdadk X-Proofpoint-GUID: YknqlyruGN5gWf-BaK0JE6ASCA-vdadk X-Proofpoint-Virus-Version: vendor=baseguard engine=ICAP:2.0.182.1,Aquarius:18.0.790,Hydra:6.0.425,FMLib:17.0.607.475 definitions=2021-10-14_10,2021-10-14_02,2020-04-07_01 Subject: [dpdk-dev] [PATCH v6 2/3] common/octeontx: enable build only on 64-bit Linux X-BeenThere: dev@dpdk.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: DPDK patches and discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: dev-bounces@dpdk.org Sender: "dev" From: Pavan Nikhilesh Since AARCH32 extension is not implemented on octeontx family, only enable build for 64bit. Due to Linux kernel AF(Admin function) driver dependency, only enable build for 64-bit Linux. Signed-off-by: Pavan Nikhilesh Acked-by: Jerin Jacob Acked-by: Harman Kalra --- drivers/common/octeontx/meson.build | 4 ++-- drivers/compress/octeontx/meson.build | 6 ++++++ drivers/crypto/octeontx/meson.build | 7 +++++++ drivers/event/octeontx/meson.build | 6 ++++++ drivers/mempool/octeontx/meson.build | 5 +++-- drivers/net/octeontx/meson.build | 4 ++-- 6 files changed, 26 insertions(+), 6 deletions(-) diff --git a/drivers/common/octeontx/meson.build b/drivers/common/octeontx/meson.build index fcda0f6445..dc060dfea1 100644 --- a/drivers/common/octeontx/meson.build +++ b/drivers/common/octeontx/meson.build @@ -2,9 +2,9 @@ # Copyright(c) 2018 Cavium, Inc # -if is_windows +if not is_linux or not dpdk_conf.get('RTE_ARCH_64') build = false - reason = 'not supported on Windows' + reason = 'only supported on 64-bit Linux' subdir_done() endif diff --git a/drivers/compress/octeontx/meson.build b/drivers/compress/octeontx/meson.build index e1b7bed422..cd8687fde3 100644 --- a/drivers/compress/octeontx/meson.build +++ b/drivers/compress/octeontx/meson.build @@ -1,6 +1,12 @@ # SPDX-License-Identifier: BSD-3-Clause # Copyright(c) 2018 Cavium, Inc +if not is_linux or not dpdk_conf.get('RTE_ARCH_64') + build = false + reason = 'only supported on 64-bit Linux' + subdir_done() +endif + sources = files('otx_zip.c', 'otx_zip_pmd.c') includes += include_directories('include') deps += ['mempool_octeontx', 'bus_pci'] diff --git a/drivers/crypto/octeontx/meson.build b/drivers/crypto/octeontx/meson.build index 244b16230e..bc6187e1cf 100644 --- a/drivers/crypto/octeontx/meson.build +++ b/drivers/crypto/octeontx/meson.build @@ -1,5 +1,12 @@ # SPDX-License-Identifier: BSD-3-Clause # Copyright(c) 2018 Cavium, Inc +# + +if not is_linux or not dpdk_conf.get('RTE_ARCH_64') + build = false + reason = 'only supported on 64-bit Linux' + subdir_done() +endif deps += ['bus_pci'] deps += ['bus_vdev'] diff --git a/drivers/event/octeontx/meson.build b/drivers/event/octeontx/meson.build index 0d9eec3f2e..eb17e059d8 100644 --- a/drivers/event/octeontx/meson.build +++ b/drivers/event/octeontx/meson.build @@ -1,6 +1,12 @@ # SPDX-License-Identifier: BSD-3-Clause # Copyright(c) 2017 Cavium, Inc +if not is_linux or not dpdk_conf.get('RTE_ARCH_64') + build = false + reason = 'only supported on 64-bit Linux' + subdir_done() +endif + sources = files( 'ssovf_worker.c', 'ssovf_evdev.c', diff --git a/drivers/mempool/octeontx/meson.build b/drivers/mempool/octeontx/meson.build index a57213e2d8..fb05928129 100644 --- a/drivers/mempool/octeontx/meson.build +++ b/drivers/mempool/octeontx/meson.build @@ -1,9 +1,10 @@ # SPDX-License-Identifier: BSD-3-Clause # Copyright(c) 2017 Cavium, Inc -if is_windows +if not is_linux or not dpdk_conf.get('RTE_ARCH_64') build = false - reason = 'not supported on Windows' + reason = 'only supported on 64-bit Linux' + subdir_done() endif sources = files( diff --git a/drivers/net/octeontx/meson.build b/drivers/net/octeontx/meson.build index 84cd4e1142..a5a6c9661c 100644 --- a/drivers/net/octeontx/meson.build +++ b/drivers/net/octeontx/meson.build @@ -1,9 +1,9 @@ # SPDX-License-Identifier: BSD-3-Clause # Copyright(c) 2017 Cavium, Inc -if is_windows +if not is_linux or not dpdk_conf.get('RTE_ARCH_64') build = false - reason = 'not supported on Windows' + reason = 'only supported on 64-bit Linux' subdir_done() endif From patchwork Thu Oct 14 19:56:53 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Pavan Nikhilesh Bhagavatula X-Patchwork-Id: 101682 X-Patchwork-Delegate: ferruh.yigit@amd.com Return-Path: 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]) by inbox.dpdk.org (Postfix) with ESMTP id 9D337A0C47; Thu, 14 Oct 2021 21:57:13 +0200 (CEST) Received: from [217.70.189.124] (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 5CBD84067C; Thu, 14 Oct 2021 21:57:11 +0200 (CEST) Received: from mx0b-0016f401.pphosted.com (mx0b-0016f401.pphosted.com [67.231.156.173]) by mails.dpdk.org (Postfix) with ESMTP id 192A54003C for ; Thu, 14 Oct 2021 21:57:10 +0200 (CEST) Received: from pps.filterd (m0045851.ppops.net [127.0.0.1]) by mx0b-0016f401.pphosted.com (8.16.1.2/8.16.1.2) with SMTP id 19EDBprZ014567; Thu, 14 Oct 2021 12:57:09 -0700 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=marvell.com; h=from : to : cc : subject : date : message-id : in-reply-to : references : mime-version : content-transfer-encoding : content-type; s=pfpt0220; bh=GxgOM30eFoTU37dCySdi+/snrY2BPbDzBOjD6TMnDHM=; b=gXMydQNqM2YQ3Em2NNflGDBFU3Sa24qHusrhGe8Tn9KRZ19eK14f1sAYfWrk00QNgEg/ oULZPTsMTT5INeDP6yI0or5U16oiHbXU7Yl5sycYkM3g3KQ8YyF9fi8IUhmIVYWoxf5n THJyDmQ5dj1LCASzj+ZgkTXiVgYL2TEEU+sqtb6lcwJr1uO8A9AQQCYCK4OSdZGzhk0v t7gVB14l0lbl3Wa8eHNJL2ieQLCn+js0/hdKORYlRjOTFdUCus9obeNstxb+ROryUxdR yUfJxqQzgrfYdQt1HpbHZLgk+Gyts2l5EbtOqRAKp6FbEMGcz5hCXT/lP8WA3ll+M7jP xA== Received: from dc5-exch01.marvell.com ([199.233.59.181]) by mx0b-0016f401.pphosted.com with ESMTP id 3bpjk1amwv-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-SHA384 bits=256 verify=NOT); Thu, 14 Oct 2021 12:57:09 -0700 Received: from DC5-EXCH01.marvell.com (10.69.176.38) by DC5-EXCH01.marvell.com (10.69.176.38) with Microsoft SMTP Server (TLS) id 15.0.1497.18; Thu, 14 Oct 2021 12:57:07 -0700 Received: from maili.marvell.com (10.69.176.80) by DC5-EXCH01.marvell.com (10.69.176.38) with Microsoft SMTP Server id 15.0.1497.18 via Frontend Transport; Thu, 14 Oct 2021 12:57:07 -0700 Received: from BG-LT7430.marvell.com (BG-LT7430.marvell.com [10.28.177.176]) by maili.marvell.com (Postfix) with ESMTP id 434045B6927; Thu, 14 Oct 2021 12:57:03 -0700 (PDT) From: To: , , Nithin Dabilpuram , Pavan Nikhilesh , "Kiran Kumar K" , Radha Mohan Chintakuntla , Veerasenareddy Burru CC: Date: Fri, 15 Oct 2021 01:26:53 +0530 Message-ID: <20211014195653.625-3-pbhagavatula@marvell.com> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20211014195653.625-1-pbhagavatula@marvell.com> References: <20211004055638.13176-1-pbhagavatula@marvell.com> <20211014195653.625-1-pbhagavatula@marvell.com> MIME-Version: 1.0 X-Proofpoint-ORIG-GUID: uoAnfPEoYTqHJfw319pqmrp1-oq1Oif- X-Proofpoint-GUID: uoAnfPEoYTqHJfw319pqmrp1-oq1Oif- X-Proofpoint-Virus-Version: vendor=baseguard engine=ICAP:2.0.182.1,Aquarius:18.0.790,Hydra:6.0.425,FMLib:17.0.607.475 definitions=2021-10-14_10,2021-10-14_02,2020-04-07_01 Subject: [dpdk-dev] [PATCH v6 3/3] common/octeontx2: enable build only on 64-bit Linux X-BeenThere: dev@dpdk.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: DPDK patches and discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: dev-bounces@dpdk.org Sender: "dev" From: Pavan Nikhilesh Since AARCH32 extension is not implemented on octeontx2 family, only enable build for 64bit. Due to Linux kernel AF(Admin Function) driver dependency, only enable build for 64-bit Linux. Signed-off-by: Pavan Nikhilesh Acked-by: Jerin Jacob --- drivers/common/octeontx2/meson.build | 10 ++-------- drivers/event/octeontx2/meson.build | 4 ++-- drivers/mempool/octeontx2/meson.build | 9 ++------- drivers/net/octeontx2/meson.build | 10 ++-------- drivers/raw/octeontx2_dma/meson.build | 10 ++++++---- 5 files changed, 14 insertions(+), 29 deletions(-) diff --git a/drivers/common/octeontx2/meson.build b/drivers/common/octeontx2/meson.build index dcfaa1e102..223ba5ef51 100644 --- a/drivers/common/octeontx2/meson.build +++ b/drivers/common/octeontx2/meson.build @@ -2,15 +2,9 @@ # Copyright(C) 2019 Marvell International Ltd. # -if is_windows +if not is_linux or not dpdk_conf.get('RTE_ARCH_64') build = false - reason = 'not supported on Windows' - subdir_done() -endif - -if not dpdk_conf.get('RTE_ARCH_64') - build = false - reason = 'only supported on 64-bit' + reason = 'only supported on 64-bit Linux' subdir_done() endif diff --git a/drivers/event/octeontx2/meson.build b/drivers/event/octeontx2/meson.build index 96ebb1f2e7..ce360af5f8 100644 --- a/drivers/event/octeontx2/meson.build +++ b/drivers/event/octeontx2/meson.build @@ -2,9 +2,9 @@ # Copyright(C) 2019 Marvell International Ltd. # -if not dpdk_conf.get('RTE_ARCH_64') +if not is_linux or not dpdk_conf.get('RTE_ARCH_64') build = false - reason = 'only supported on 64-bit' + reason = 'only supported on 64-bit Linux' subdir_done() endif diff --git a/drivers/mempool/octeontx2/meson.build b/drivers/mempool/octeontx2/meson.build index 2a1dfddd4c..a4bea6d364 100644 --- a/drivers/mempool/octeontx2/meson.build +++ b/drivers/mempool/octeontx2/meson.build @@ -2,14 +2,9 @@ # Copyright(C) 2019 Marvell International Ltd. # -if is_windows +if not is_linux or not dpdk_conf.get('RTE_ARCH_64') build = false - reason = 'not supported on Windows' - subdir_done() -endif -if not dpdk_conf.get('RTE_ARCH_64') - build = false - reason = 'only supported on 64-bit' + reason = 'only supported on 64-bit Linux' subdir_done() endif diff --git a/drivers/net/octeontx2/meson.build b/drivers/net/octeontx2/meson.build index a355313120..ab15844cbc 100644 --- a/drivers/net/octeontx2/meson.build +++ b/drivers/net/octeontx2/meson.build @@ -2,15 +2,9 @@ # Copyright(C) 2019 Marvell International Ltd. # -if is_windows +if not is_linux or not dpdk_conf.get('RTE_ARCH_64') build = false - reason = 'not supported on Windows' - subdir_done() -endif - -if not dpdk_conf.get('RTE_ARCH_64') - build = false - reason = 'only supported on 64-bit' + reason = 'only supported on 64-bit Linux' subdir_done() endif diff --git a/drivers/raw/octeontx2_dma/meson.build b/drivers/raw/octeontx2_dma/meson.build index e744fccaae..6460bd8242 100644 --- a/drivers/raw/octeontx2_dma/meson.build +++ b/drivers/raw/octeontx2_dma/meson.build @@ -2,14 +2,16 @@ # Copyright(C) 2019 Marvell International Ltd. # +if not is_linux or not dpdk_conf.get('RTE_ARCH_64') + build = false + reason = 'only supported on 64-bit Linux' + subdir_done() +endif + deps += ['bus_pci', 'common_octeontx2', 'rawdev'] sources = files('otx2_dpi_rawdev.c', 'otx2_dpi_msg.c', 'otx2_dpi_test.c') extra_flags = [] -# This integrated controller runs only on a arm64 machine, remove 32bit warnings -if not dpdk_conf.get('RTE_ARCH_64') - extra_flags += ['-Wno-int-to-pointer-cast', '-Wno-pointer-to-int-cast'] -endif foreach flag: extra_flags if cc.has_argument(flag)