diff options
author | Sergei Trofimovich <slyfox@gentoo.org> | 2019-11-20 20:28:40 +0000 |
---|---|---|
committer | Sergei Trofimovich <slyfox@gentoo.org> | 2019-11-20 20:30:19 +0000 |
commit | 7b7b4fe856baecfbe4b36831a88dac298e6bb2b9 (patch) | |
tree | aa2da8287af003506720f96dc6f0296af46117bd /eclass/tests | |
parent | media-libs/mesa: Version bump to 19.3.0_rc4 (diff) | |
download | gentoo-7b7b4fe856baecfbe4b36831a88dac298e6bb2b9.tar.gz gentoo-7b7b4fe856baecfbe4b36831a88dac298e6bb2b9.tar.bz2 gentoo-7b7b4fe856baecfbe4b36831a88dac298e6bb2b9.zip |
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>
Diffstat (limited to 'eclass/tests')
-rwxr-xr-x | eclass/tests/toolchain-funcs.sh | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/eclass/tests/toolchain-funcs.sh b/eclass/tests/toolchain-funcs.sh index 79ba6fa407b5..4cd4213c2de5 100755 --- a/eclass/tests/toolchain-funcs.sh +++ b/eclass/tests/toolchain-funcs.sh @@ -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} |