eclass/tests/toolchain-funcs.sh: fix tc-cpp-is-true tests

The test was failing on systems without clang because presence
of compiler was tested incorrectly (${compielr} typo).

Reported-by: Michał Górny
Signed-off-by: Sergei Trofimovich <slyfox@gentoo.org>
This commit is contained in:
Sergei Trofimovich
2019-11-20 20:28:40 +00:00
parent 8ae673ca53
commit 7b7b4fe856

View File

@@ -172,8 +172,8 @@ if type -P pathcc &>/dev/null; then
tend $?
fi
for compiler in gcc clang; do
if type -P ${compielr} &>/dev/null; then
for compiler in gcc clang not-really-a-compiler; do
if type -P ${compiler} &>/dev/null; then
tbegin "tc-cpp-is-true ($compiler, defined)"
(
export CC=${compiler}