From 6ec3ca94cc6d0b8f716d71f249aa4f7ae6a7e1d8 Mon Sep 17 00:00:00 2001 From: ReenigneArcher <42013603+ReenigneArcher@users.noreply.github.com> Date: Sat, 5 Oct 2024 20:36:11 -0400 Subject: [PATCH] build(copr): use cuda-gcc-c++ --- packaging/linux/fedora/sunshine.spec | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/packaging/linux/fedora/sunshine.spec b/packaging/linux/fedora/sunshine.spec index 56b9ec50ede..7695dd15449 100644 --- a/packaging/linux/fedora/sunshine.spec +++ b/packaging/linux/fedora/sunshine.spec @@ -17,8 +17,9 @@ Source0: tarball.tar.gz # BuildRequires: boost-devel >= 1.86.0 BuildRequires: cmake >= 3.25.0 +BuildRequires: cuda-gcc-c++ BuildRequires: gcc -BuildRequires: gcc-c++ +# BuildRequires: gcc-c++ BuildRequires: libayatana-appindicator3-devel BuildRequires: libcap-devel BuildRequires: libcurl-devel @@ -95,8 +96,8 @@ if [ "$fedora_version" == 39 ]; then cuda_version="12.4.0" cuda_build="550.54.14" else - cuda_version= - cuda_build= + cuda_version="12.4.0" + cuda_build="550.54.14" fi # prepare CMAKE args @@ -166,6 +167,7 @@ if [ -n "$cuda_version" ] && [[ " ${cuda_supported_architectures[@]} " =~ " ${ar install_cuda cmake_args+=("-DSUNSHINE_ENABLE_CUDA=ON") cmake_args+=("-DCMAKE_CUDA_COMPILER:PATH=%{_builddir}/cuda/bin/nvcc") + export NVCC_PREPEND_FLAGS='-ccbin /usr/bin/cuda' fi # cmake