build(Archlinux): Update GCC version in PKGBUILD to 15 (#4546)

Bump the _gcc_version variable from 14 to 15 and change makedepends to use the generic 'gcc' package. This ensures the package builds with the latest GCC version available.
This commit is contained in:
David Lane
2025-12-29 20:16:28 -05:00
committed by GitHub
parent 72d6b0de66
commit 2e68762e36
2 changed files with 20 additions and 6 deletions

View File

@ -20,6 +20,11 @@ if(CMAKE_CXX_COMPILER_ID STREQUAL "GNU")
list(APPEND SUNSHINE_COMPILE_OPTIONS -Wno-restrict)
endif()
endif()
# GCC 15 will complain about uninitialized variables in some cases (Simple-Web-Server)
if(CMAKE_CXX_COMPILER_VERSION VERSION_GREATER_EQUAL 15)
list(APPEND SUNSHINE_COMPILE_OPTIONS -Wno-uninitialized)
endif()
elseif(CMAKE_CXX_COMPILER_ID STREQUAL "Clang")
# Clang specific compile options