commit:     1df7cb1b7b4368e08066d8d2befec5ebb39f5ba9
Author:     Janne Grunau <j <AT> jannau <DOT> net>
AuthorDate: Wed Apr 30 19:42:23 2025 +0000
Commit:     Matt Turner <mattst88 <AT> gentoo <DOT> org>
CommitDate: Fri May  2 01:43:22 2025 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=1df7cb1b

media-libs/mesa: Fix panfrost cross compilation

panfrost requires a precomp-compiler during the build which will be
built in dev-util/mesa_clc[video_cards_panfrost].

Signed-off-by: Janne Grunau <j <AT> jannau.net>
Signed-off-by: Matt Turner <mattst88 <AT> gentoo.org>

 media-libs/mesa/mesa-9999.ebuild | 6 +++++-
 1 file changed, 5 insertions(+), 1 deletion(-)

diff --git a/media-libs/mesa/mesa-9999.ebuild b/media-libs/mesa/mesa-9999.ebuild
index 4008a341d8f9..4108ce4e7ff0 100644
--- a/media-libs/mesa/mesa-9999.ebuild
+++ b/media-libs/mesa/mesa-9999.ebuild
@@ -159,7 +159,7 @@ DEPEND="${RDEPEND}
 "
 
 CLC_DEPSTRING="
-       ~dev-util/mesa_clc-${PV}
+       ~dev-util/mesa_clc-${PV}[video_cards_panfrost?]
        llvm-core/libclc[spirv(-)]
 "
 BDEPEND="
@@ -441,6 +441,10 @@ multilib_src_configure() {
           emesonargs+=(-Dmesa-clc=system)
        fi
 
+       if use video_cards_panfrost; then
+           emesonargs+=(-Dprecomp-compiler=system)
+       fi
+
        use debug && EMESON_BUILDTYPE=debug
 
        emesonargs+=(

Reply via email to