1
0
mirror of https://github.com/Llewellynvdm/conky.git synced 2024-11-15 01:34:11 +00:00
conky/tests/llvm-gcov.sh
2023-02-25 14:22:43 -05:00

30 lines
380 B
Bash
Executable File

#!/usr/bin/env bash
llvm_version_suffixes=(
""
-15
150
-14
140
-13
130
-12
120
-11
110
100
-10
90
-9
)
for suffix in "${llvm_version_suffixes[@]}"; do
llvm_cov_test="llvm-cov${suffix}"
if hash $llvm_cov_test 2>/dev/null; then
llvm_cov=$llvm_cov_test
break
fi
done
exec $llvm_cov gcov "$@"