From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from youngberry.canonical.com (youngberry.canonical.com [91.189.89.112]) by dpdk.org (Postfix) with ESMTP id 909C15F1D for ; Wed, 14 Nov 2018 12:35:56 +0100 (CET) Received: from 2.general.paelzer.uk.vpn ([10.172.196.173] helo=Keschdeichel.fritz.box) by youngberry.canonical.com with esmtpsa (TLS1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.76) (envelope-from ) id 1gMtSe-0004OH-9i; Wed, 14 Nov 2018 11:35:56 +0000 From: Christian Ehrhardt To: Luca Boccassi , dev Cc: Christian Ehrhardt Date: Wed, 14 Nov 2018 12:34:52 +0100 Message-Id: <20181114113453.24852-1-christian.ehrhardt@canonical.com> X-Mailer: git-send-email 2.17.1 Subject: [dpdk-dev] [PATCH 1/2] build: avoid non supported -march on ppc (meson) X-BeenThere: dev@dpdk.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: DPDK patches and discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 14 Nov 2018 11:35:56 -0000 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. Signed-off-by: Christian Ehrhardt --- config/meson.build | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/config/meson.build b/config/meson.build index 0b710b795..1af305f46 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 -- 2.17.1