From 6cd0cd9e91031902aa02a7783d34957595d58802 Mon Sep 17 00:00:00 2001 From: ReenigneArcher <42013603+ReenigneArcher@users.noreply.github.com> Date: Sat, 21 Dec 2024 13:39:15 -0500 Subject: [PATCH] build(copr): fix build (#3458) Co-authored-by: Matthew Schwartz --- packaging/linux/fedora/Sunshine.spec | 18 +++++++++--------- 1 file changed, 9 insertions(+), 9 deletions(-) diff --git a/packaging/linux/fedora/Sunshine.spec b/packaging/linux/fedora/Sunshine.spec index c19ddf78..ca08f480 100644 --- a/packaging/linux/fedora/Sunshine.spec +++ b/packaging/linux/fedora/Sunshine.spec @@ -95,14 +95,12 @@ fedora_version=%{fedora} cuda_supported_architectures=("x86_64" "aarch64") # set cuda_version based on Fedora version -# these are the same right now, but leave this structure to make it easier to set different versions -if [ "$fedora_version" == 39 ]; then - cuda_version="12.6.2" - cuda_build="560.35.03" -else - cuda_version="12.6.2" - cuda_build="560.35.03" -fi +case "$fedora_version" in + *) + cuda_version="12.6.3" + cuda_build="560.35.05" + ;; +esac # prepare CMAKE args cmake_args=( @@ -132,7 +130,7 @@ function install_cuda() { if [ "$fedora_version" -ge 40 ]; then # update environment variables for CUDA, necessary when using cuda-gcc-c++ - export NVCC_PREPEND_FLAGS='-ccbin /usr/bin/cuda' + export NVCC_PREPEND_FLAGS='-ccbin /usr/bin/g++-13' export PATH=/usr/bin/cuda:"%{_builddir}/cuda/bin:${PATH}" export LD_LIBRARY_PATH="%{_builddir}/cuda/lib64:${LD_LIBRARY_PATH}" fi @@ -169,6 +167,8 @@ export CXXFLAGS="" export FFLAGS="" export FCFLAGS="" export LDFLAGS="" +export CC=gcc-13 +export CXX=g++-13 if [ -n "$cuda_version" ] && [[ " ${cuda_supported_architectures[@]} " =~ " ${architecture} " ]]; then install_cuda