build-sys: don't use ASAN on XOS

It seems that Apple Clang is not mature enough to use ASAN.

  AddressSanitizer: detect_leaks is not supported on this platform.

Let's disable ASAN on XOS at all.

Signed-off-by: Karel Zak <kzak@redhat.com>
This commit is contained in:
Karel Zak 2019-04-25 10:18:08 +02:00
parent 57f25377c3
commit 450016eb72
1 changed files with 20 additions and 13 deletions

View File

@ -49,18 +49,22 @@ function make_checkusage
function check_nonroot
{
local opts="$MAKE_CHECK_OPTS --show-diff --memcheck-asan"
xconfigure \
--enable-asan \
local make_opts="$MAKE_CHECK_OPTS --show-diff"
local conf_opts="\
--disable-use-tty-group \
--disable-makeinstall-chown \
--enable-all-programs \
|| return
--enable-all-programs"
if [ "$TRAVIS_OS_NAME" != "osx" ]; then
conf_opts="$conf_opts --enable-asan"
make_opts="$make_opts --memcheck-asan"
fi
xconfigure $conf_opts || return
$MAKE || return
osx_prepare_check
$MAKE check TS_OPTS="$opts" || return
$MAKE check TS_OPTS="$make_opts" || return
make_checkusage || return
@ -69,17 +73,20 @@ function check_nonroot
function check_root
{
local opts="$MAKE_CHECK_OPTS --show-diff --memcheck-asan"
local make_opts="$MAKE_CHECK_OPTS --show-diff"
local conf_opts="--enable-all-programs"
xconfigure \
--enable-asan \
--enable-all-programs \
|| return
if [ "$TRAVIS_OS_NAME" != "osx" ]; then
conf_opts="$conf_opts --enable-asan"
make_opts="$make_opts --memcheck-asan"
fi
xconfigure $conf_opts || return
$MAKE || return
$MAKE check TS_COMMAND="true" || return
osx_prepare_check
sudo -E $MAKE check TS_OPTS="$opts" || return
sudo -E $MAKE check TS_OPTS="$make_opts" || return
# root on osx has not enough permission for make install ;)
[ "$TRAVIS_OS_NAME" = "osx" ] && return