619b8e3733
When ./configure --enable-debug is specified, meson is invoked using the default 'release' buildtype and '-O0 -g' is added to DPDK_CFLAGS. Instead, specify --buildtype=debug so that meson knows it is a debug build, will return the correct value from get_option('buildtype') and can choose the appropriate toolset options to enable symbolic debugging. Using --buildtype=debug generates unoptimised code which matches the current intent. Tested by building with and without --enable-debug and verifying that meson reports 'debug' for the debug build. Signed-off-by: Nick Connolly <nick.connolly@mayadata.io> Change-Id: Iabb79cd2051145e03fea8fd749cfb18b78e625a0 Reviewed-on: https://review.spdk.io/gerrit/c/spdk/spdk/+/6497 Community-CI: Broadcom CI Community-CI: Mellanox Build Bot Tested-by: SPDK CI Jenkins <sys_sgci@intel.com> Reviewed-by: Jim Harris <james.r.harris@intel.com> Reviewed-by: Aleksey Marchuk <alexeymar@mellanox.com> |
||
---|---|---|
.. | ||
Makefile |