numam-dpdk/lib/librte_eal
Ilya Maximets 9726aa9907 eal: fix build of external app with clang on armv8
In case DPDK built using GCC, RTE_TOOLCHAIN_CLANG is not defined.
But 'rte_atomic.h' is a generic header that included to the
external apps like OVS while building with DPDK. As a result,
clang build of OVS fails on armv8 if DPDK built using gcc:

    include/generic/rte_atomic.h:215:9: error:
            implicit declaration of function '__atomic_exchange_2'
            is invalid in C99
    include/generic/rte_atomic.h:494:9: error:
            implicit declaration of function '__atomic_exchange_4'
            is invalid in C99
    include/generic/rte_atomic.h:772:9: error:
            implicit declaration of function '__atomic_exchange_8'
            is invalid in C99

We need to check for current compiler, not the compiler used for
DPDK build.

Fixes: 7bdccb9307 ("eal: fix ARM build with clang")
Cc: stable@dpdk.org

Signed-off-by: Ilya Maximets <i.maximets@samsung.com>
Acked-by: Thomas Monjalon <thomas@monjalon.net>
2019-01-14 19:49:48 +01:00
..
bsdapp eal/bsd: remove clean up of files at startup 2019-01-14 15:23:12 +01:00
common eal: fix build of external app with clang on armv8 2019-01-14 19:49:48 +01:00
linuxapp mem: fix storing old policy 2019-01-14 15:50:52 +01:00
Makefile
meson.build mk: build with _GNU_SOURCE defined by default 2018-10-22 11:28:27 +02:00
rte_eal_version.map mem: allow usage of non-heap external memory in multiprocess 2018-12-20 18:14:55 +01:00