autobuild.sh: replace --disable-debug

Using "get_config_params" and appending --disable-
debug results in contradictory options on the same
./configure line. Sed out "--enable-debug" instead.

Signed-off-by: Karol Latecki <karol.latecki@intel.com>
Change-Id: I465f38b4c63ab7a6ae824c7932b2548fdb362ff3
Reviewed-on: https://review.spdk.io/gerrit/c/spdk/spdk/+/4733
Tested-by: SPDK CI Jenkins <sys_sgci@intel.com>
Reviewed-by: Shuhei Matsumoto <shuhei.matsumoto.xt@hitachi.com>
Reviewed-by: Jim Harris <james.r.harris@intel.com>
This commit is contained in:
Karol Latecki 2020-10-16 10:38:15 +02:00 committed by Tomasz Zawadzki
parent 63a6e3ba31
commit d526c73c61

View File

@ -35,11 +35,12 @@ fi
timing_enter build_release timing_enter build_release
config_params="$(get_config_params | sed 's/--enable-debug//g')"
if [ $(uname -s) = Linux ]; then if [ $(uname -s) = Linux ]; then
./configure $(get_config_params) --disable-debug --enable-lto ./configure $config_params --enable-lto
else else
# LTO needs a special compiler to work on BSD. # LTO needs a special compiler to work on BSD.
./configure $(get_config_params) --disable-debug ./configure $config_params
fi fi
$MAKE ${MAKEFLAGS} $MAKE ${MAKEFLAGS}
$MAKE ${MAKEFLAGS} clean $MAKE ${MAKEFLAGS} clean