mirror of
https://github.com/cryb-to/cryb-to.git
synced 2024-11-22 05:35:46 +00:00
Respect user's CC
This commit is contained in:
parent
087aeca634
commit
66715646d1
1 changed files with 4 additions and 3 deletions
|
@ -5,20 +5,21 @@ has() {
|
||||||
}
|
}
|
||||||
|
|
||||||
# BullseyeCoverage needs to know exactly which compiler we're using
|
# BullseyeCoverage needs to know exactly which compiler we're using
|
||||||
if has clang clang++ ; then
|
if has "${CC}" "${CXX}" ; then
|
||||||
|
echo "using CC=${CC}"
|
||||||
|
elif has clang clang++ ; then
|
||||||
echo "using Clang"
|
echo "using Clang"
|
||||||
export CC="${CC:-clang}"
|
export CC="${CC:-clang}"
|
||||||
export CPP="${CPP:-${CC} -E}"
|
|
||||||
export CXX="${CXX:-clang++}"
|
export CXX="${CXX:-clang++}"
|
||||||
elif has gcc g++ ; then
|
elif has gcc g++ ; then
|
||||||
echo "using GCC"
|
echo "using GCC"
|
||||||
export CC="${CC:-gcc}"
|
export CC="${CC:-gcc}"
|
||||||
export CPP="${CPP:-gcc -E}"
|
|
||||||
export CXX="${CXX:-g++}"
|
export CXX="${CXX:-g++}"
|
||||||
else
|
else
|
||||||
echo "WARNING: using default compiler," \
|
echo "WARNING: using default compiler," \
|
||||||
"coverage analysis may not work"
|
"coverage analysis may not work"
|
||||||
fi
|
fi
|
||||||
|
export CPP="${CPP:-${CC} -E}"
|
||||||
|
|
||||||
set -e
|
set -e
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue