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: Jim 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: SPDK CI Jenkins <sys_sgci@intel.com> Reviewed-by: Tomasz Zawadzki <tomasz.zawadzki@intel.com> Reviewed-by: Aleksey Marchuk <alexeymar@nvidia.com>
This commit is contained in:
parent
2ac7ec79e9
commit
29e4e4a851
@ -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
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user