Skip to content

Commit 4458e91

Browse files
committed
be more strict when searching scan-build-*
clang-9 brings `scan-build-py-9` which matched the old pattern
1 parent 62bbdec commit 4458e91

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

.ci/meta_builds.sh

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -53,8 +53,8 @@ function run_clang() {
5353
# output version
5454
bash .ci/printinfo.sh
5555

56-
scan_build=$(which scan-build)
57-
[ -z "$scan_build" ] && scan_build=$(find /usr/bin/ -name 'scan-build-*' | sort -nr | head -n1) || true
56+
scan_build=$(which scan-build) || true
57+
[ -z "$scan_build" ] && scan_build=$(find /usr/bin/ -name 'scan-build-[0-9]*' | sort -nr | head -n1) || true
5858
[ -z "$scan_build" ] && { echo "couldn't find clang scan-build"; exit 1; } || echo "run $scan_build"
5959
$scan_build --status-bugs make -j$MAKE_JOBS all CFLAGS="$2 $CFLAGS $4" EXTRALIBS="$5"
6060

0 commit comments

Comments
 (0)