From: Christian Ehrhardt Date: Wed, 14 Nov 2018 19:40:11 +0000 (+0100) Subject: build: avoid non supported -march on ppc with meson X-Git-Url: http://git.droids-corp.org/?a=commitdiff_plain;h=aba3289e874cd184fc6cc4408236e9680e009a34;p=dpdk.git build: avoid non supported -march on ppc with meson So far only if machine was "native" it did use the re-direction to not set -march on ppc64 (where -march is not supported). We have to use mcpu/mtune in any case on ppc for whatever someone using the build system defines as machine. Fixes: 54d609a13876 ("build: add ppc64 meson build") Signed-off-by: Christian Ehrhardt Acked-by: Luca Boccassi --- diff --git a/config/meson.build b/config/meson.build index 0b710b7959..1af305f46a 100644 --- a/config/meson.build +++ b/config/meson.build @@ -9,8 +9,9 @@ else endif dpdk_conf.set('RTE_MACHINE', machine) machine_args = [] -# ppc64 does not support -march=native -if host_machine.cpu_family().startswith('ppc') and machine == 'native' + +# ppc64 does not support -march= at all, use -mcpu and -mtune for that +if host_machine.cpu_family().startswith('ppc') machine_args += '-mcpu=' + machine machine_args += '-mtune=' + machine else