commit:     451623c534e7e4fa47a2793c85f5f4fbabc518c6
Author:     Paul Zander <negril.nx+gentoo <AT> gmail <DOT> com>
AuthorDate: Tue Jul 22 17:55:49 2025 +0000
Commit:     Paul Zander <negril.nx+gentoo <AT> gmail <DOT> com>
CommitDate: Tue Jul 22 18:25:30 2025 +0000
URL:        https://gitweb.gentoo.org/repo/proj/guru.git/commit/?id=451623c5

sci-misc/llama-cpp: set CUDAHOSTCXX via cuda.eclass

Closes: https://bugs.gentoo.org/960549
Signed-off-by: Paul Zander <negril.nx+gentoo <AT> gmail.com>

 sci-misc/llama-cpp/llama-cpp-0_pre5857.ebuild | 7 +++++++
 sci-misc/llama-cpp/llama-cpp-9999.ebuild      | 7 +++++++
 2 files changed, 14 insertions(+)

diff --git a/sci-misc/llama-cpp/llama-cpp-0_pre5857.ebuild 
b/sci-misc/llama-cpp/llama-cpp-0_pre5857.ebuild
index 3c299357c9..3f39aebf74 100644
--- a/sci-misc/llama-cpp/llama-cpp-0_pre5857.ebuild
+++ b/sci-misc/llama-cpp/llama-cpp-0_pre5857.ebuild
@@ -93,6 +93,13 @@ src_configure() {
                )
        fi
 
+       if use cuda; then
+               local -x CUDAHOSTCXX="$(cuda_gccdir)"
+               # tries to recreate dev symlinks
+               cuda_add_sandbox
+               addpredict "/dev/char/"
+       fi
+
        if use hip; then
                rocm_use_hipcc
                mycmakeargs+=(

diff --git a/sci-misc/llama-cpp/llama-cpp-9999.ebuild 
b/sci-misc/llama-cpp/llama-cpp-9999.ebuild
index 3c299357c9..3f39aebf74 100644
--- a/sci-misc/llama-cpp/llama-cpp-9999.ebuild
+++ b/sci-misc/llama-cpp/llama-cpp-9999.ebuild
@@ -93,6 +93,13 @@ src_configure() {
                )
        fi
 
+       if use cuda; then
+               local -x CUDAHOSTCXX="$(cuda_gccdir)"
+               # tries to recreate dev symlinks
+               cuda_add_sandbox
+               addpredict "/dev/char/"
+       fi
+
        if use hip; then
                rocm_use_hipcc
                mycmakeargs+=(

Reply via email to