1 # SPDX-License-Identifier: BSD-3-Clause
2 # Copyright(c) 2018 Marvell International Ltd
5 # Usage: MACHINE_CFLAGS += $(call rte_cc_has_argument, -mno-avx512f)
6 # Return the argument if the argument is supported by the compiler.
8 define rte_cc_has_argument
9 $(shell $(CC) -E $(1) -xc /dev/null 1>/dev/null 2>/dev/null && echo $(1))