mirror of
https://github.com/Llewellynvdm/conky.git
synced 2025-01-13 03:11:16 +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)
|
PATHS ENV PATH)
|
||||||
find_program(LLVM_COV_PATH
|
find_program(LLVM_COV_PATH
|
||||||
NAMES
|
NAMES
|
||||||
llvm-cov11
|
llvm-cov110
|
||||||
llvm-cov-11
|
llvm-cov-11
|
||||||
llvm-cov10
|
llvm-cov100
|
||||||
llvm-cov-10
|
llvm-cov-10
|
||||||
llvm-cov90
|
llvm-cov90
|
||||||
llvm-cov-9
|
llvm-cov-9
|
||||||
@ -84,9 +84,9 @@ find_program(LLVM_COV_PATH
|
|||||||
PATHS ENV PATH)
|
PATHS ENV PATH)
|
||||||
find_program(LLVM_PROFDATA_PATH
|
find_program(LLVM_PROFDATA_PATH
|
||||||
NAMES
|
NAMES
|
||||||
llvm-profdata11
|
llvm-profdata110
|
||||||
llvm-profdata-11
|
llvm-profdata-11
|
||||||
llvm-profdata10
|
llvm-profdata100
|
||||||
llvm-profdata-10
|
llvm-profdata-10
|
||||||
llvm-profdata90
|
llvm-profdata90
|
||||||
llvm-profdata-9
|
llvm-profdata-9
|
||||||
|
@ -1,15 +1,27 @@
|
|||||||
#!/usr/bin/env bash
|
#!/usr/bin/env bash
|
||||||
|
|
||||||
if hash llvm-cov 2>/dev/null; then
|
if hash llvm-cov-11 2>/dev/null; then
|
||||||
llvm_cov="llvm-cov"
|
llvm_cov="llvm-cov-11"
|
||||||
elif hash llvm-cov-7 2>/dev/null; then
|
elif hash llvm-cov110 2>/dev/null; then
|
||||||
llvm_cov="llvm-cov-7"
|
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
|
elif hash llvm-cov-8 2>/dev/null; then
|
||||||
llvm_cov="llvm-cov-8"
|
llvm_cov="llvm-cov-8"
|
||||||
elif hash llvm-cov70 2>/dev/null; then
|
elif hash llvm-cov70 2>/dev/null; then
|
||||||
llvm_cov="llvm-cov70"
|
llvm_cov="llvm-cov70"
|
||||||
elif hash llvm-cov80 2>/dev/null; then
|
elif hash llvm-cov-7 2>/dev/null; then
|
||||||
llvm_cov="llvm-cov80"
|
llvm_cov="llvm-cov-7"
|
||||||
|
elif hash llvm-cov 2>/dev/null; then
|
||||||
|
llvm_cov="llvm-cov"
|
||||||
fi
|
fi
|
||||||
|
|
||||||
exec $llvm_cov gcov "$@"
|
exec $llvm_cov gcov "$@"
|
||||||
|
Loading…
Reference in New Issue
Block a user