numam-dpdk/drivers
Gavin Hu d292a42fc8 build: fix for host clang and cross gcc
The following error hits if host cc compiler is clang(default one in most
linux distributions) and the cross compiler is gcc.

The root cause is: the hybride compilers add the warning options to the
meson project as project arguments, which apply for both host compiling and
cross compiling. But some options such as '-Wno-format-truncation' are not
supported nor recognized by clang, so they have to be removed from the
project arguments for the host compiler to run smoothily and added back as
cflags for the cross compiler to compile for cross source files.

The fix is remove unrecognized warning options from the meson project
arguments shared by gcc and clang, as add them specifically for gcc or
clang as cflags.

[265/893] Compiling C object
'buildtools/pmdinfogen/pmdinfogen@exe/pmdinfogen.c.o'.  warning: unknown
warning option '-Wno-format-truncation' [-Wunknown-warning-option]

Fixes: a55277a788 ("devtools: add test script for meson builds")
Cc: stable@dpdk.org

Signed-off-by: Gavin Hu <gavin.hu@arm.com>
Reviewed-by: Phil Yang <phil.yang@arm.com>
Reviewed-by: Song Zhu <song.zhu@arm.com>
Reviewed-by: Steve Capper <steve.capper@arm.com>
Acked-by: Bruce Richardson <bruce.richardson@intel.com>
2018-07-11 21:14:21 +02:00
..
baseband baseband/turbo_sw: shorten internal buffers names 2018-05-28 03:17:14 +02:00
bus bus/pci: enable write combining during mapping 2018-06-30 00:12:58 +02:00
common common/qat: replace snprintf 2018-07-11 00:57:51 +02:00
compress compressdev: add huffman encoding flags 2018-07-11 00:57:51 +02:00
crypto crypto/scheduler: add minimum head/tailroom requirement 2018-07-11 03:57:24 +02:00
event eventdev: add driver interface of crypto adapter 2018-05-10 14:07:37 +02:00
mempool mempool/bucket: add to meson build 2018-05-21 12:00:09 +02:00
net net/bonding: do not clear active slave count 2018-07-05 15:35:19 +02:00
raw raw/ifpga/base: fix an error return 2018-05-21 16:13:06 +02:00
Makefile crypto/qat: move common qat files to common dir 2018-07-11 00:55:30 +02:00
meson.build build: fix for host clang and cross gcc 2018-07-11 21:14:21 +02:00