mirror of
https://github.com/Llewellynvdm/conky.git
synced 2024-11-05 21:07:52 +00:00
Update gcov wrapper to use latest llvm.
This commit is contained in:
parent
801658756f
commit
783ebc269c
@ -70,9 +70,9 @@ find_program(LCOV_PATH
|
||||
PATHS ENV PATH)
|
||||
find_program(LLVM_COV_PATH
|
||||
NAMES
|
||||
llvm-cov11
|
||||
llvm-cov110
|
||||
llvm-cov-11
|
||||
llvm-cov10
|
||||
llvm-cov100
|
||||
llvm-cov-10
|
||||
llvm-cov90
|
||||
llvm-cov-9
|
||||
@ -84,9 +84,9 @@ find_program(LLVM_COV_PATH
|
||||
PATHS ENV PATH)
|
||||
find_program(LLVM_PROFDATA_PATH
|
||||
NAMES
|
||||
llvm-profdata11
|
||||
llvm-profdata110
|
||||
llvm-profdata-11
|
||||
llvm-profdata10
|
||||
llvm-profdata100
|
||||
llvm-profdata-10
|
||||
llvm-profdata90
|
||||
llvm-profdata-9
|
||||
|
@ -1,15 +1,27 @@
|
||||
#!/usr/bin/env bash
|
||||
|
||||
if hash llvm-cov 2>/dev/null; then
|
||||
llvm_cov="llvm-cov"
|
||||
elif hash llvm-cov-7 2>/dev/null; then
|
||||
llvm_cov="llvm-cov-7"
|
||||
if hash llvm-cov-11 2>/dev/null; then
|
||||
llvm_cov="llvm-cov-11"
|
||||
elif hash llvm-cov110 2>/dev/null; then
|
||||
llvm_cov="llvm-cov110"
|
||||
elif hash llvm-cov100 2>/dev/null; then
|
||||
llvm_cov="llvm-cov100"
|
||||
elif hash llvm-cov-10 2>/dev/null; then
|
||||
llvm_cov="llvm-cov-10"
|
||||
elif hash llvm-cov90 2>/dev/null; then
|
||||
llvm_cov="llvm-cov90"
|
||||
elif hash llvm-cov-9 2>/dev/null; then
|
||||
llvm_cov="llvm-cov-9"
|
||||
elif hash llvm-cov80 2>/dev/null; then
|
||||
llvm_cov="llvm-cov80"
|
||||
elif hash llvm-cov-8 2>/dev/null; then
|
||||
llvm_cov="llvm-cov-8"
|
||||
elif hash llvm-cov70 2>/dev/null; then
|
||||
llvm_cov="llvm-cov70"
|
||||
elif hash llvm-cov80 2>/dev/null; then
|
||||
llvm_cov="llvm-cov80"
|
||||
elif hash llvm-cov-7 2>/dev/null; then
|
||||
llvm_cov="llvm-cov-7"
|
||||
elif hash llvm-cov 2>/dev/null; then
|
||||
llvm_cov="llvm-cov"
|
||||
fi
|
||||
|
||||
exec $llvm_cov gcov "$@"
|
||||
|
Loading…
Reference in New Issue
Block a user