eclass/tests/toolchain-funcs.sh: fix tc-cpp-is-true tests
authorSergei Trofimovich <slyfox@gentoo.org>
Wed, 20 Nov 2019 20:28:40 +0000 (20:28 +0000)
committerSergei Trofimovich <slyfox@gentoo.org>
Wed, 20 Nov 2019 20:30:19 +0000 (20:30 +0000)
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>
eclass/tests/toolchain-funcs.sh

index 79ba6fa407b5d4fadea192538f6221edd354f634..4cd4213c2de54c4d2559578d7b476fba0c415d6f 100755 (executable)
@@ -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}