]> git.droids-corp.org - dpdk.git/blobdiff - mk/toolchain/gcc/rte.toolchain-compat.mk
mk: fix AVX512 disabled warning on non x86
[dpdk.git] / mk / toolchain / gcc / rte.toolchain-compat.mk
index dbddc986e67d0737c44d88b4a96c76f9911bd989..df71e4a8b570c7c56f24b05cfcca6795956a25ec 100644 (file)
@@ -22,6 +22,7 @@ HOST_GCC_VERSION = $(HOST_GCC_MAJOR)$(HOST_GCC_MINOR)
 
 LD_VERSION = $(shell $(LD) -v)
 # disable AVX512F support for GCC & binutils 2.30 as a workaround for Bug 97
+ifeq ($(CONFIG_RTE_ARCH_X86), y)
 ifneq ($(filter 2.30%,$(LD_VERSION)),)
 FORCE_DISABLE_AVX512 := y
 # print warning only once for librte_eal
@@ -29,6 +30,7 @@ ifneq ($(filter %librte_eal,$(CURDIR)),)
 $(warning AVX512 support disabled because of ld 2.30. See Bug 97)
 endif
 endif
+endif
 
 # if GCC is older than 4.x
 ifeq ($(shell test $(GCC_VERSION) -lt 40 && echo 1), 1)