From mboxrd@z Thu Jan 1 00:00:00 1970 From: Thomas Monjalon Subject: Re: [PATCH] build: set RTE_ARCH_64 based on pointer size Date: Tue, 26 Feb 2019 18:34:54 +0100 Message-ID: <5206548.KeCzm57IXO@xps> References: <20180926091536.61370-1-bruce.richardson@intel.com> <1537957091.8363.1.camel@debian.org> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7Bit Cc: dev@dpdk.org, Luca Boccassi To: Bruce Richardson Return-path: Received: from out2-smtp.messagingengine.com (out2-smtp.messagingengine.com [66.111.4.26]) by dpdk.org (Postfix) with ESMTP id AF4622C30 for ; Tue, 26 Feb 2019 18:34:57 +0100 (CET) In-Reply-To: <1537957091.8363.1.camel@debian.org> List-Id: DPDK patches and discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: dev-bounces@dpdk.org Sender: "dev" 26/09/2018 12:18, Luca Boccassi: > On Wed, 2018-09-26 at 10:15 +0100, Bruce Richardson wrote: > > Rather than relying on the target machine architecture, use the > > size of a pointer from the compiler to determine if we are 64-bits > > or not. This allows correct behaviour when you pass -m32 as a compile > > option. It also allows us to use this value repeatedly throughout the > > repo rather than continually testing for the sizeof(void*). > > > > Signed-off-by: Bruce Richardson > > --- > > config/arm/meson.build | 3 +-- > > config/meson.build | 5 ++++- > > config/ppc_64/meson.build | 4 +++- > > config/x86/meson.build | 3 +-- > > drivers/net/sfc/meson.build | 2 +- > > lib/librte_bpf/meson.build | 2 +- > > lib/librte_kni/meson.build | 2 +- > > 7 files changed, 12 insertions(+), 9 deletions(-) > > Tested-by: Luca Boccassi > > Build-tested on ppc64 and arm64 native Debian sid hosts. Rebased with new change in drivers/net/enic/meson.build, and applied, thanks