travis: stop building fuzz targets on macOS

Looks like `-fsanitize=fuzzer` isn't supported there:

https://travis-ci.org/github/karelzak/util-linux/jobs/716894984
```
clang: error: unsupported option '-fsanitize=fuzzer' for target 'x86_64-apple-darwin17.7.0'
```
This commit is contained in:
Evgeny Vereshchagin 2020-08-10 23:33:51 +00:00
parent b62ec52e8f
commit 6c13bfcfed
1 changed files with 12 additions and 12 deletions

View File

@ -93,14 +93,14 @@ function check_nonroot
if [ "$TRAVIS_OS_NAME" != "osx" ]; then
conf_opts="$conf_opts --enable-asan --enable-ubsan"
make_opts="$make_opts --memcheck-asan --memcheck-ubsan"
fi
if [ "$TRAVIS_OS_NAME" != "osx" -a "$TRAVIS_DIST" != "precise" ]; then
conf_opts="$conf_opts --enable-werror"
fi
if [ "$TRAVIS_DIST" != "precise" ]; then
conf_opts="$conf_opts --enable-werror"
fi
if [[ "$CC" =~ "clang" ]]; then
conf_opts="$conf_opts --enable-fuzzing-engine"
if [[ "$CC" =~ "clang" ]]; then
conf_opts="$conf_opts --enable-fuzzing-engine"
fi
fi
xconfigure $conf_opts || return
@ -124,14 +124,14 @@ function check_root
if [ "$TRAVIS_OS_NAME" != "osx" ]; then
conf_opts="$conf_opts --enable-asan --enable-ubsan"
make_opts="$make_opts --memcheck-asan --memcheck-ubsan"
fi
if [ "$TRAVIS_OS_NAME" != "osx" -a "$TRAVIS_DIST" != "precise" ]; then
conf_opts="$conf_opts --enable-werror"
fi
if [ "$TRAVIS_DIST" != "precise" ]; then
conf_opts="$conf_opts --enable-werror"
fi
if [[ "$CC" =~ "clang" ]]; then
conf_opts="$conf_opts --enable-fuzzing-engine"
if [[ "$CC" =~ "clang" ]]; then
conf_opts="$conf_opts --enable-fuzzing-engine"
fi
fi
xconfigure $conf_opts || return