Commit a252cf7c authored by Kamil Godzwon's avatar Kamil Godzwon Committed by Tomasz Zawadzki
Browse files

dpdkbuild: disable LTO while using clang compiler



Disable LTO while using clang compiler due to unsupported
fat LTO objects error.

Signed-off-by: default avatarKamil Godzwon <kamilx.godzwon@intel.com>
Change-Id: I511e92144c974e8a55d503f58d2ae45bef62eb68
Reviewed-on: https://review.spdk.io/gerrit/c/spdk/spdk/+/14557


Reviewed-by: default avatarMichal Berger <michal.berger@intel.com>
Reviewed-by: default avatarKonrad Sztyber <konrad.sztyber@intel.com>
Reviewed-by: default avatarTomasz Zawadzki <tomasz.zawadzki@intel.com>
Community-CI: Mellanox Build Bot
Tested-by: default avatarSPDK CI Jenkins <sys_sgci@intel.com>
parent 92b643b0
Loading
Loading
Loading
Loading
+3 −0
Original line number Diff line number Diff line
@@ -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