kde5-functions.eclass: don't perform gcc version check with clang
authorMichael Palimaka <kensington@gentoo.org>
Wed, 6 Jul 2016 20:50:11 +0000 (06:50 +1000)
committerMichael Palimaka <kensington@gentoo.org>
Thu, 7 Jul 2016 13:43:22 +0000 (23:43 +1000)
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.

Gentoo-bug: 587998

eclass/kde5-functions.eclass

index ad3034a491a1adab20796b83de7f24b66bd48ee9..a03c2ad29fd49622ba90f5e3ec971cfa4f29abbc 100644 (file)
@@ -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%.*}