dpdkbuild: disable LTO while using clang compiler
Disable LTO while using clang compiler due to unsupported fat LTO objects error. Signed-off-by: Kamil Godzwon <kamilx.godzwon@intel.com> Change-Id: I511e92144c974e8a55d503f58d2ae45bef62eb68 Reviewed-on: https://review.spdk.io/gerrit/c/spdk/spdk/+/14557 Reviewed-by: Michal Berger <michal.berger@intel.com> Reviewed-by: Konrad Sztyber <konrad.sztyber@intel.com> Reviewed-by: Tomasz Zawadzki <tomasz.zawadzki@intel.com> Community-CI: Mellanox Build Bot Tested-by: SPDK CI Jenkins <sys_sgci@intel.com>
This commit is contained in:
parent
92b643b0b2
commit
a252cf7c59
@ -24,8 +24,11 @@ DPDK_OPTS += --buildtype=debug
|
||||
endif
|
||||
|
||||
ifeq ($(CONFIG_LTO),y)
|
||||
# dpdk complains about compiler not supporting fat LTO objects when clang is in use so don't enable it in such a instance
|
||||
ifneq ($(CC_TYPE),clang)
|
||||
DPDK_OPTS += -Db_lto=true
|
||||
endif
|
||||
endif
|
||||
|
||||
# the drivers we use
|
||||
DPDK_DRIVERS = bus bus/pci bus/vdev mempool/ring
|
||||
|
Loading…
Reference in New Issue
Block a user