commit:     f4d5509345750e68f3c8d76b360e9e26a1ccc35f
Author:     Arthur Zamarin <arthurzam <AT> gentoo <DOT> org>
AuthorDate: Wed Jun 12 07:09:33 2024 +0000
Commit:     Arthur Zamarin <arthurzam <AT> gentoo <DOT> org>
CommitDate: Fri Jul  5 10:55:38 2024 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=f4d55093

tree-sitter-grammar.eclass: respect CC & AR

Closes: https://bugs.gentoo.org/932626
Signed-off-by: Arthur Zamarin <arthurzam <AT> gentoo.org>
Signed-off-by: Brahmajit Das <brahmajit.xyz <AT> gmail.com>
Closes: https://github.com/gentoo/gentoo/pull/37122
Signed-off-by: Arthur Zamarin <arthurzam <AT> gentoo.org>

 eclass/tree-sitter-grammar.eclass | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/eclass/tree-sitter-grammar.eclass 
b/eclass/tree-sitter-grammar.eclass
index ff0c4cb979e6..1e83ff8c98b9 100644
--- a/eclass/tree-sitter-grammar.eclass
+++ b/eclass/tree-sitter-grammar.eclass
@@ -162,6 +162,8 @@ tree-sitter-grammar_src_compile() {
        if [[ -f "${S}/pyproject.toml" ]]; then
                sed -e "/SONAME_MINOR :=/s/:=.*$/:= $(_get_tsg_abi_ver)/" -i 
"${S}/Makefile" || die
                emake \
+                       CC="$(tc-getCC)" \
+                       AR="$(tc-getAR)" \
                        STRIP="" \
                        PREFIX="${EPREFIX}/usr" \
                        LIBDIR="${EPREFIX}/usr/$(get_libdir)"

Reply via email to