From: Declan Doherty Date: Fri, 20 Nov 2015 14:34:33 +0000 (+0000) Subject: mk: fix build with icc 16 X-Git-Tag: spdx-start~8025 X-Git-Url: http://git.droids-corp.org/?a=commitdiff_plain;h=3a96022f367a648721903d97e0837103e66cc8e9;p=dpdk.git mk: fix build with icc 16 This patch changes the ICC conditional check to disable -no-inline-max-size and -no-inline-max-total-size to be for all versions of icc greater than 14 and not just for version 15. Signed-off-by: Declan Doherty Acked-by: Olivier Matz --- diff --git a/mk/toolchain/icc/rte.vars.mk b/mk/toolchain/icc/rte.vars.mk index e39d710ada..9b6b34bd90 100644 --- a/mk/toolchain/icc/rte.vars.mk +++ b/mk/toolchain/icc/rte.vars.mk @@ -74,8 +74,8 @@ WERROR_FLAGS += -diag-disable 13368 -diag-disable 15527 # process cpu flags include $(RTE_SDK)/mk/toolchain/$(RTE_TOOLCHAIN)/rte.toolchain-compat.mk -# disable max-inline params boundaries for ICC 15 compiler -ifeq ($(shell test $(ICC_MAJOR_VERSION) -eq 15 && echo 1), 1) +# disable max-inline params boundaries for ICC compiler for version 15 and greater +ifeq ($(shell test $(ICC_MAJOR_VERSION) -ge 14 && echo 1), 1) TOOLCHAIN_CFLAGS += -no-inline-max-size -no-inline-max-total-size endif