test mbuf attach
[dpdk.git] / mk / rte.helper.mk
1 # SPDX-License-Identifier: BSD-3-Clause
2 # Copyright(c) 2018 Marvell International Ltd
3
4 # rte_cc_has_argument
5 # Usage: MACHINE_CFLAGS += $(call rte_cc_has_argument, -mno-avx512f)
6 # Return the argument if the argument is supported by the compiler.
7 #
8 define rte_cc_has_argument
9         $(shell $(CC) -E $(1) -xc /dev/null 1>/dev/null 2>/dev/null && echo $(1))
10 endef