commit:     ca5a684e6be8154d4c4b2b6a2adb0110bfcb5c58
Author:     Fabian Groffen <grobian <AT> gentoo <DOT> org>
AuthorDate: Mon Jun  6 09:06:58 2022 +0000
Commit:     Fabian Groffen <grobian <AT> gentoo <DOT> org>
CommitDate: Mon Jun  6 09:06:58 2022 +0000
URL:        https://gitweb.gentoo.org/repo/proj/prefix.git/commit/?id=ca5a684e

toolchain.eclass: fix syntax

Signed-off-by: Fabian Groffen <grobian <AT> gentoo.org>

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

diff --git a/eclass/toolchain.eclass b/eclass/toolchain.eclass
index ed8c227c4a..782cbeebf2 100644
--- a/eclass/toolchain.eclass
+++ b/eclass/toolchain.eclass
@@ -202,7 +202,7 @@ tc_has_feature() {
 
 # Prefix: allow gcc-apple post 4.2.1
 if [[ ${PN} != "kgcc64" && ${PN} != gcc-* ]] ||
-       [[ ${PN} == "gcc-apple" && tc_version_is_at_least 12.1 ]] ; then
+       [[ ${PN} == "gcc-apple" && $(tc_version_is_at_least 12.1) == 0 ]] ; then
        IUSE+=" debug +cxx +nptl" TC_FEATURES+=( nptl )
        [[ -n ${PIE_VER} ]] && IUSE+=" nopie"
        [[ -n ${SPECS_VER} ]] && IUSE+=" nossp"

Reply via email to