[dpdk-dev] [PATCH] build: set RTE_ARCH_64 based on pointer size

Luca Boccassi bluca at debian.org
Wed Sep 26 12:18:11 CEST 2018


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 <bruce.richardson at intel.com>
> ---
>  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 <bluca at debian.org>

Build-tested on ppc64 and arm64 native Debian sid hosts.

-- 
Kind regards,
Luca Boccassi


More information about the dev mailing list