]> git.ipfire.org Git - thirdparty/util-linux.git/commitdiff
travis: stop building fuzz targets on macOS
authorEvgeny Vereshchagin <evvers@ya.ru>
Mon, 10 Aug 2020 23:33:51 +0000 (23:33 +0000)
committerEvgeny Vereshchagin <evvers@ya.ru>
Tue, 11 Aug 2020 00:21:27 +0000 (00:21 +0000)
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'
```

.travis-functions.sh

index d9e1c6c3854c9c9c1bcafbb37ea5ce0e57c6af66..3357338b0715cb3799d6202385667b37598bff2f 100755 (executable)
@@ -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