commit:     53173d7420d926eb94cf94135350b124345cfa7a
Author:     Sam James <sam <AT> gentoo <DOT> org>
AuthorDate: Sun Sep 29 01:12:29 2024 +0000
Commit:     Sam James <sam <AT> gentoo <DOT> org>
CommitDate: Sun Sep 29 01:12:54 2024 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=53173d74

toolchain.eclass: use ${GNAT} for GNAT version print

It shouldn't matter as we set PATH but let's do it anyway for consistency.

Signed-off-by: Sam James <sam <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 15fe4dfb60bc..f941f08d4198 100644
--- a/eclass/toolchain.eclass
+++ b/eclass/toolchain.eclass
@@ -1602,7 +1602,7 @@ toolchain_src_configure() {
        einfo "STDCXX_INCDIR:   ${STDCXX_INCDIR}"
        einfo "Languages:       ${GCC_LANG}"
        einfo "GCC version:     $($(tc-getCC) -v 2>&1 | grep ' version ' | awk 
'{ print $3 }')"
-       is_ada && einfo "GNAT version:    $(gnat 2>&1 | grep GNAT | awk '{ 
print $2 }')"
+       is_ada && einfo "GNAT version:    $(${GNAT} 2>&1 | grep GNAT | awk '{ 
print $2 }')"
        is_d && einfo "GDC version:     $(${GDC} -v 2>&1 | grep ' version ' | 
awk '{ print $3 }')"
 
        echo

Reply via email to