Commit 29e4e4a8 authored by Jim Harris's avatar Jim Harris Committed by Tomasz Zawadzki
Browse files

dpdkbuild: enable LTO



When user specifies SPDK LTO build, pass the
associated option to the DPDK build to enable
LTO there as well.

Signed-off-by: default avatarJim Harris <james.r.harris@intel.com>
Change-Id: I5996ae0668ad00c52fcaeb28db055af8dc85a8ca
Reviewed-on: https://review.spdk.io/gerrit/c/spdk/spdk/+/14389


Community-CI: Mellanox Build Bot
Tested-by: default avatarSPDK CI Jenkins <sys_sgci@intel.com>
Reviewed-by: default avatarTomasz Zawadzki <tomasz.zawadzki@intel.com>
Reviewed-by: default avatarAleksey Marchuk <alexeymar@nvidia.com>
parent 2ac7ec79
Loading
Loading
Loading
Loading
+4 −0
Original line number Diff line number Diff line
@@ -23,6 +23,10 @@ ifeq ($(CONFIG_DEBUG),y)
DPDK_OPTS += --buildtype=debug
endif

ifeq ($(CONFIG_LTO),y)
DPDK_OPTS += -Db_lto=true
endif

# the drivers we use
DPDK_DRIVERS = bus bus/pci bus/vdev mempool/ring