media-gfx/freecad: bail out from cuda_get_host_compiler w/o nvidia-cuda-toolkit

Not sure if negril will want to fix this another way, but let's do
the quick-n-easy thing for now.

Closes: https://bugs.gentoo.org/955687
Signed-off-by: Sam James <sam@gentoo.org>
This commit is contained in:
Sam James
2025-05-10 02:05:23 +01:00
parent 935614768d
commit e15416a814
2 changed files with 8 additions and 0 deletions

View File

@@ -141,6 +141,10 @@ cuda_get_host_compiler() {
return
fi
if ! has_version dev-util/nvidia-cuda-toolkit ; then
return
fi
einfo "Trying to find working CUDA host compiler"
if ! tc-is-gcc && ! tc-is-clang; then

View File

@@ -138,6 +138,10 @@ cuda_get_host_compiler() {
return
fi
if ! has_version dev-util/nvidia-cuda-toolkit ; then
return
fi
einfo "Trying to find working CUDA host compiler"
if ! tc-is-gcc && ! tc-is-clang; then