commit:     d7c4ed7f9256b3899c64105814669b11f771c30d
Author:     Michael Palimaka <kensington <AT> gentoo <DOT> org>
AuthorDate: Wed Jul  6 20:50:11 2016 +0000
Commit:     Michael Palimaka <kensington <AT> gentoo <DOT> org>
CommitDate: Wed Jul  6 20:52:49 2016 +0000
URL:        https://gitweb.gentoo.org/proj/kde.git/commit/?id=d7c4ed7f

kde5-functions.eclass: only perform gcc check if gcc is being used

This used to "work" because gcc-version relied on gcc-config, even if GCC was
not the active compiler. gcc-version has since been fixed to always use CC
instead.

 eclass/kde5-functions.eclass | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/eclass/kde5-functions.eclass b/eclass/kde5-functions.eclass
index ad3034a..a03c2ad 100644
--- a/eclass/kde5-functions.eclass
+++ b/eclass/kde5-functions.eclass
@@ -76,7 +76,7 @@ export KDE_BUILD_TYPE
 # @DESCRIPTION:
 # Determine if the current GCC version is acceptable, otherwise die.
 _check_gcc_version() {
-       if [[ ${MERGE_TYPE} != binary && -v KDE_GCC_MINIMAL ]]; then
+       if [[ ${MERGE_TYPE} != binary && -v KDE_GCC_MINIMAL ]] && tc-is-gcc; 
then
 
                local version=$(gcc-version)
                local major=${version%.*}

Reply via email to