mirror of
https://github.com/gentoo-mirror/gentoo.git
synced 2026-08-06 12:58:16 -07:00
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:
@@ -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}
|
||||
|
||||
Reference in New Issue
Block a user