From: Raslan Darawsheh Date: Wed, 23 Oct 2019 11:31:45 +0000 (+0000) Subject: net/mlx: fix debug build with icc X-Git-Url: http://git.droids-corp.org/?a=commitdiff_plain;h=38e118c0d8304190d4f24297fe2279a7b658c071;p=dpdk.git net/mlx: fix debug build with icc Trying to compile mlx5 pmd in debug mode with icc will lead to compilation failures due to the fact that icc doesn't have support for the pragma of pedantic. Cc: stable@dpdk.org Signed-off-by: Raslan Darawsheh Acked-by: Viacheslav Ovsiienko --- diff --git a/drivers/net/mlx4/Makefile b/drivers/net/mlx4/Makefile index 25d7c7555d..7ea6f74895 100644 --- a/drivers/net/mlx4/Makefile +++ b/drivers/net/mlx4/Makefile @@ -67,7 +67,10 @@ endif # User-defined CFLAGS. ifeq ($(CONFIG_RTE_LIBRTE_MLX4_DEBUG),y) -CFLAGS += -pedantic -UNDEBUG -DPEDANTIC +CFLAGS += -pedantic -UNDEBUG +ifneq ($(CONFIG_RTE_TOOLCHAIN_ICC),y) +CFLAGS += -DPEDANTIC +endif AUTO_CONFIG_CFLAGS += -Wno-pedantic else CFLAGS += -DNDEBUG -UPEDANTIC diff --git a/drivers/net/mlx5/Makefile b/drivers/net/mlx5/Makefile index 04de93a881..dae5b9fac1 100644 --- a/drivers/net/mlx5/Makefile +++ b/drivers/net/mlx5/Makefile @@ -83,7 +83,10 @@ endif # User-defined CFLAGS. ifeq ($(CONFIG_RTE_LIBRTE_MLX5_DEBUG),y) -CFLAGS += -pedantic -UNDEBUG -DPEDANTIC +CFLAGS += -pedantic -UNDEBUG +ifneq ($(CONFIG_RTE_TOOLCHAIN_ICC),y) +CFLAGS += -DPEDANTIC +endif AUTO_CONFIG_CFLAGS += -Wno-pedantic else CFLAGS += -DNDEBUG -UPEDANTIC